Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

referencing fields

Status
Not open for further replies.

Onslaughtdave

Programmer
Jan 24, 2005
59
CA
Hello,

How do you reference a table and field in a form using vba?

i got a [Form]![whatever]![field] working but how do i do one that isnt in a form, but is just a table...


thanks
 
field in a form
Forms have Controls, no Fields.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Take a look at the DLookUp function

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
That would work, however:

how do i get it to look up more then 1 value...

I do one Dlookup, but the return into a variable but when it hits the second dloopup to get another value in another field, i get an error saying that i canceled the previous operation.

thanks PHV your a big help to a newbie ;)
 
That would work, however:

how do i get it to look up more then 1 value...

I do one Dlookup, put the return into a variable but when it hits the second dlookup to get another value in another field, i get an error saying that i canceled the previous operation.

thanks PHV your a big help to a newbie ;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top