G
Guest
I have a form (frmMaintenance) with a checkbox on it. I want to be able to
change the default by looking at a table (tblSys) and setting the default
value by getting that value found in the table. The description field will
either contain =Yes or =No depending on what I am doing at the time.
Table structure:
TblName: tblSys
(f1) Comparison (f2) ReturnVal (f3)
Description
cur values: Username BobbyS =Yes
My understanding is that I can set the default value of the checkbox to
equal the value in the Description field. I have put the following in the
default value of the checkbox (name: chkIt):
=DLookup("[Description]", "tblSys", "[Comparison]"="""Username")
This doesn't seem to work. What am I doing wrong?
Also, can I create a variable = the dlookup above and then change the
Description field to =No or do I have to go about it another way?
Thank you.
change the default by looking at a table (tblSys) and setting the default
value by getting that value found in the table. The description field will
either contain =Yes or =No depending on what I am doing at the time.
Table structure:
TblName: tblSys
(f1) Comparison (f2) ReturnVal (f3)
Description
cur values: Username BobbyS =Yes
My understanding is that I can set the default value of the checkbox to
equal the value in the Description field. I have put the following in the
default value of the checkbox (name: chkIt):
=DLookup("[Description]", "tblSys", "[Comparison]"="""Username")
This doesn't seem to work. What am I doing wrong?
Also, can I create a variable = the dlookup above and then change the
Description field to =No or do I have to go about it another way?
Thank you.