probably the line causing the problem is this:
lookup_ref = DLookup("[Ref]", "working days table", "[working_day] = start")
try
lookup_ref = DLookup("[Ref]", "working days table", "[working_day] = '" & start & "'")
Hi,
goto tools -> references and make sure you have the reference Microsoft Office XX.X Object Library checked.
XX.X being the version of your access database
that happens because probably your combo is "bounded" to just 1 column. If you would like to display the other fields why don't you do that at query level by joining the lookup table in your query.
Also you can populate them via a dlookup, however, it is less efficient than the query method.
It means that calculated fields are not meant to be stored in tables. You should create a calculated field in your query and then do the math there i.e. your new field would be:
NewField: [IDTo] - [IDFrom]
Thank you very much for all the feedback. Actually my original post wasn't related to a particular database i am working on, but i was wondering what approach other developers take in such circumstance.
Once again, thank you.