R
raymondp
Hey,
I'm in the process of creating a form to fill in a database. I have a table
(siteid) with the following fields.
Order
SiteID (alphanumeric)
pmID (alphanumeric)
wmoID (numeric)
juliandeployed
Deployed
Today
The form (TDLForm) used to enter new data has the fields:
Date: =Now()
Time
SiteID
pmID
Adrift
Sensor
Activity
Description
Monitor
What I need is when I fill in the SiteID field, the pmID field fills in with
the correct value from the siteid table. Below is one of the many versions
of the expression I have tried in the control source field with no success.
=DLookUp("[pmID]","[TDLForm]","[SiteID] = Tables!siteid!SiteID")
Please let me know what I'm doing wrong.
Thanks,
-Ray
I'm in the process of creating a form to fill in a database. I have a table
(siteid) with the following fields.
Order
SiteID (alphanumeric)
pmID (alphanumeric)
wmoID (numeric)
juliandeployed
Deployed
Today
The form (TDLForm) used to enter new data has the fields:
Date: =Now()
Time
SiteID
pmID
Adrift
Sensor
Activity
Description
Monitor
What I need is when I fill in the SiteID field, the pmID field fills in with
the correct value from the siteid table. Below is one of the many versions
of the expression I have tried in the control source field with no success.
=DLookUp("[pmID]","[TDLForm]","[SiteID] = Tables!siteid!SiteID")
Please let me know what I'm doing wrong.
Thanks,
-Ray