B
bendixen
I have reviewed online help but am still running into a problem in trying to
run this DLookup created in Expression Builder.
I am trying to create a form where, when a 'sequence number' is entered,
other text boxes such as 'emp name' in the same form are populated with a
Default Value (which can be later changed on the form when the curser is
tabbed to them).
I have a table named {tbl_projectmaster} which has all the default values
(some of which aren't correct for my use). I have a form named {frm_effort
report} which adds to a table named {tbl_effort report}. Table
{tbl_effort_report} has all the same fields as the table {tbl_projectmaster}
,plus other fields. All fields are text based as they use a combination of
numbers and letters.
The code I'm writing into the Default Value entry of the form's text box
property is =DLookup ("[sequence num]","tbl_projectmaster","[emp
name]=forms![emp name]")
There is no result in the field when I run this. The text boxes remain
empty after I enter the 'sequence number' into the first text box in this
form. I'm hoping this is an easy question for some of you, but this has me
baffled after several hours of trying to get it to work. Would someone help
me please? Thanks!
run this DLookup created in Expression Builder.
I am trying to create a form where, when a 'sequence number' is entered,
other text boxes such as 'emp name' in the same form are populated with a
Default Value (which can be later changed on the form when the curser is
tabbed to them).
I have a table named {tbl_projectmaster} which has all the default values
(some of which aren't correct for my use). I have a form named {frm_effort
report} which adds to a table named {tbl_effort report}. Table
{tbl_effort_report} has all the same fields as the table {tbl_projectmaster}
,plus other fields. All fields are text based as they use a combination of
numbers and letters.
The code I'm writing into the Default Value entry of the form's text box
property is =DLookup ("[sequence num]","tbl_projectmaster","[emp
name]=forms![emp name]")
There is no result in the field when I run this. The text boxes remain
empty after I enter the 'sequence number' into the first text box in this
form. I'm hoping this is an easy question for some of you, but this has me
baffled after several hours of trying to get it to work. Would someone help
me please? Thanks!