Hi,
I'm creating a database where a user selects certain parts of a financial report and views the data...
ie. on page 10010503 is a value for say assets.
The first 2 digits represent a page, second set a subpage, third set a line number and fourth set a column number.
I have 4 different list boxes for a user to select each section and I want the data value to be displayed in a textbox at the push of a command button.
This is what I have:
TextInfo.Value = DLookup("[NumVal]", "dbo_NumData", "[DP] = Forms![Main]![Insurer]Forms![Main]![Subpage]Forms![Main]![line]Forms![Main]![Column]")
So it should print the field NumVal from the table dbo_NumData, if the field DP matches hte collaboration of the listbox selections.
Unfortunately, this does not work...in the immediate window when I type:
? Forms![Main]![Insurer]Forms![Main]![Subpage]Forms![Main]![line]Forms![Main]![Column]
it gives me exactly what i am looking for...any ideas at anything i should change or if i can achieve my goal in another manner?
Thank you...
I'm creating a database where a user selects certain parts of a financial report and views the data...
ie. on page 10010503 is a value for say assets.
The first 2 digits represent a page, second set a subpage, third set a line number and fourth set a column number.
I have 4 different list boxes for a user to select each section and I want the data value to be displayed in a textbox at the push of a command button.
This is what I have:
TextInfo.Value = DLookup("[NumVal]", "dbo_NumData", "[DP] = Forms![Main]![Insurer]Forms![Main]![Subpage]Forms![Main]![line]Forms![Main]![Column]")
So it should print the field NumVal from the table dbo_NumData, if the field DP matches hte collaboration of the listbox selections.
Unfortunately, this does not work...in the immediate window when I type:
? Forms![Main]![Insurer]Forms![Main]![Subpage]Forms![Main]![line]Forms![Main]![Column]
it gives me exactly what i am looking for...any ideas at anything i should change or if i can achieve my goal in another manner?
Thank you...