DLookup (1 Viewer)

BadScript

Registered User.
Local time
Today, 08:58
Joined
Oct 30, 2007
Messages
73
I'm trying to populate a textbox using DLookup.
My textbox is called text1.
I have a table called Table Language.
I'm trying to get the value from the column text1 where IDlanguage = 1
The code I use:

text1.Value = DLookup("[text1]", "Table Language", "[IDlanguage] = 1")

I keep getting an error and can't figure out why.
Help would be appreciated.
 

Zigzag

Registered User.
Local time
Today, 16:58
Joined
Aug 19, 2007
Messages
386
What error message are you getting?
 

BadScript

Registered User.
Local time
Today, 08:58
Joined
Oct 30, 2007
Messages
73
What error message are you getting?

I figured it out, I tried:
text1 = DLookup("[text1]", "Table Language", "[IDlanguage] = 1")

And it worked :)
 

Users who are viewing this thread

Top Bottom