Pickup the value of the table on Form (1 Viewer)

hfsitumo2001

Member
Local time
Today, 02:05
Joined
Jan 17, 2021
Messages
365
Hello, I want to pickup the value of a column in a table, but the source of the switchboard form is not from the table. I want it to show the version number on the form. I tried this:
Code:
SELECT tblLocalVariables.ID, tblLocalVariables.Value FROM tblLocalVariables
as the the source of the textbox version, but it does not work, it shows "#name" in the text box. This is my form below.
Version no.jpg
 

pbaldy

Wino Moderator
Staff member
Local time
Today, 02:05
Joined
Aug 30, 2003
Messages
36,125
Try a DLookup(). You can't put SQL in a textbox like that.
 

pbaldy

Wino Moderator
Staff member
Local time
Today, 02:05
Joined
Aug 30, 2003
Messages
36,125
Happy to help.
 

Users who are viewing this thread

Top Bottom