Results 1 to 5 of 5

Thread: Using my laptop as a frisby over databases

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    8

    Angry

    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.

  2. #2
    Guest

    Wink 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

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    8

    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.

  4. #4
    Guest

    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

  5. #5

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    8

    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
  •  



Click Here to Expand Forum to Full Width