A
Andi
If anyone could help me I would sure be appreciative. I
am creating a form and have set the data source to all of
the fields in one of the talbes in my DB. There are fifty
fields that each allow input of an inventory number.
There will be a control attached to each one of these
fields on my form for data input. I would like another
control for each that reflects the description attached
to the item number entered in the first of the two
controls. I would like to have this description looked
up from another of the tables in my DB that contains two
fields in each record: Description and ItemNumber. I
have created the first control bound to one of the item
number fields in the "PickList" table. I have created a
second unbound control and am trying to use a DLookup
function to look up the field's value (Description) from
the Item table.
Am I going about this in the correct way?
If so, Is there a problem with the syntax of my DLookup:
=DLookUp("[Description]","ItemNumbers","[ItemNumber]=
[Forms!FrmPickList!CntItem1]")
If I try adding the ItemNumber table to the data source
for my form, I end up with a blank form when I go to
record view. I am assuming this means I have a faulty
relationship or none specified where I should. So, I
removed that table from the SQL statement and now I just
end up with nothing in the Description control.
I am a beginner with Access and figure I am missing
something basic, but have found no help in several books
and/or postings on DLookup syntax.
Can anyone help?
Thanks in advance,
Andi
am creating a form and have set the data source to all of
the fields in one of the talbes in my DB. There are fifty
fields that each allow input of an inventory number.
There will be a control attached to each one of these
fields on my form for data input. I would like another
control for each that reflects the description attached
to the item number entered in the first of the two
controls. I would like to have this description looked
up from another of the tables in my DB that contains two
fields in each record: Description and ItemNumber. I
have created the first control bound to one of the item
number fields in the "PickList" table. I have created a
second unbound control and am trying to use a DLookup
function to look up the field's value (Description) from
the Item table.
Am I going about this in the correct way?
If so, Is there a problem with the syntax of my DLookup:
=DLookUp("[Description]","ItemNumbers","[ItemNumber]=
[Forms!FrmPickList!CntItem1]")
If I try adding the ItemNumber table to the data source
for my form, I end up with a blank form when I go to
record view. I am assuming this means I have a faulty
relationship or none specified where I should. So, I
removed that table from the SQL statement and now I just
end up with nothing in the Description control.
I am a beginner with Access and figure I am missing
something basic, but have found no help in several books
and/or postings on DLookup syntax.
Can anyone help?
Thanks in advance,
Andi