|
-
Apr 23rd, 2000, 05:19 AM
#1
Thread Starter
New Member
Very simple question. I simply want to display a data field from and Access application in a text box. I have tried every command I know, and just cant seem to make it work.
I have tried:
text1=unitprice
and
unitprice.show
among other failed attempts.
Please help me before I use this laptop like a frisby.
-
Apr 23rd, 2000, 05:51 AM
#2
Not enough information
Caren't quite work out what the problem is,
Have you tried either of these approachs
1. Binding the Access Database to the form
2. Manually opening the database and recordset.
Personally l woulod use the second approach, don't like data binding in multi-user environments.
Hope it helps....or give more details
-
Apr 23rd, 2000, 12:17 PM
#3
Thread Starter
New Member
Ok here is more information.
I had already tried that, I have the information in my application. I simply used the DB Wizzard and that works great. I had allready created the DB with Access. But now I need to pick it apart and I cant figure out how. If I can display a scecific field then I can manulate it. That is my problem.
-
Apr 25th, 2000, 07:56 AM
#4
Ok try this
Add a reference to your project, Project-> References-> MS DAO 2.5 3.0
General Procedure
Dim db as database
Dim rs as recordset
Form Load Procedure
set db = dbengine.opendatabase(Path & Name)
ser rs = db.openrecordset("TableName",dbopendynaset)
rs.movefirst
txtBox = rs!Fieldname
If this don't work then you have real problems. This is probably the simplest method
Hope it helps
-
Apr 25th, 2000, 09:28 AM
#5
Thread Starter
New Member
Thanks
That did exactly what I wanted with a slight modification. Thanks, I owe you a beer sometime.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|