I'm stumped! I have a form that we will be using to write reports. The form is based off of a query that pulls from two other queries that go back to two different tables (one holds customer information the other will hold each report and they are linked off of the ClientID / IDNumber).
There is information stored in the customer table that I need to default value on the report which will be stored in the report table. This information changes from time to time and we need to be able to retrieve the information at the time the report is written and the customer table only holds the "current" information so yes redundant but it works for our need.
I have been trying to use a DLookUp on the default value for the field (ComboBox) but it won't give me the information on the form. If I go to Debug the code works fine, just not on the form. Even though it says IDNumber and ClientID they are both stored as text not numbers. Any ideas what I might be missing?
Here's what I have:
This information would then be stored in [AxisIadx] on the report table and is on the field properties as the data source.
There is information stored in the customer table that I need to default value on the report which will be stored in the report table. This information changes from time to time and we need to be able to retrieve the information at the time the report is written and the customer table only holds the "current" information so yes redundant but it works for our need.
I have been trying to use a DLookUp on the default value for the field (ComboBox) but it won't give me the information on the form. If I go to Debug the code works fine, just not on the form. Even though it says IDNumber and ClientID they are both stored as text not numbers. Any ideas what I might be missing?
Here's what I have:
Code:
DLookUp ("[Axis Ia dx]", "QryContactComplete", "[IDNumber] = Forms!FrmContact![ClientID]")
Comment