pardon i'don't remember (2 question in 1)

Vega la Luce
10-17-2004, 03:11 AM
1)

Private Sub Command2_Click()
Form5.Show
Label6.Label.Form5 = Text1.Text.Form3
End Sub

i don't remember the true string for show in Label6.Label.Form5 the same text of Text1.Text.Form3


2)

how do you do for setting My program to work with the my database in always PC...??

[&app\... ] bah i have forgot...

rajeeshun
10-17-2004, 04:29 AM
oh... really confusing !!!
is this you want ?


form5.Label6.Caption=form3.text1.text



Second thing... realy I don't understand, What do u want exactly.
1. You want to have an application
2. It should tallk to database (it is a database application)
3. It should run it in your PC

please calrify ...

Vega la Luce
10-17-2004, 05:32 AM
oh... really confusing !!!
is this you want ?


form5.Label6.Caption=form3.text1.text



Second thing... realy I don't understand, What do u want exactly.
1. You want to have an application
2. It should tallk to database (it is a database application)
3. It should run it in your PC

please calrify ...


thank y for the first question....just tested and it's run right


for the 2°

i mean: in my pc have a database in c:\db\tooth.mdb

but if i want my program run in all pc i must setting some string or some command that search the database in the same directory where installed the program in all pc.

aj_reading
10-17-2004, 05:46 AM
u wanna use the data control to connect to a microsoft access db. it should be in ur tool bar and isnt too hard to figure out :)

there are better ways but use that

Klodo
10-17-2004, 08:19 AM
I'm not sure, but I think you mean: App.Path. This will give you the directory were your program is. So if you have a database in the folder were your program is:

App.path & "\tooth.mdb"

Vega la Luce
10-17-2004, 09:17 AM
I'm not sure, but I think you mean: App.Path. This will give you the directory were your program is. So if you have a database in the folder were your program is:

App.path & "\tooth.mdb"

GOODDDDDD great wery well!!!


i can't to find this string in my "notebook", bien, i'm re-starting now

MikeJ
10-17-2004, 12:46 PM
If you haven't actually saved your project when you try to use App.Path, it won't work correctly. (Also, you don't need the DataControl to work with Databases, in fact, it's recommended that you DON'T.)

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum