I am 'fixing up' an old Access Database, and the client requested that a DATE field be added to a form. Problem is, I have NEVER used Access before. I'm a SQL guy, and I build my own UI's. This forms thing is getting the better of me.
Ok - So I have two tables: tblQuestionairre QuestionairreID EventID blah blah blah
tblEvent EventID DateTime blah blah blah
Now, I am editing the frmQuestionairre (Questionairre Form). All the information from the Questionairre Table (tblQuestionairre) is here. Problem is, I need to add the DateTime field somewhere on this form so that the client can see when the questionairre was entered. As you can see, my linking item is EventID.
Try as I might, I cannot just "add" DateTime from the Event table using "expression builder". I need to load the correct DateTime for the current Questionairre that is loaded. Each Questionairre is linked to an Event.
How can I add this field to the Questionairre form? I keep getting a #Name? error, which is obviously because it doesn't know to link the two tables on EventID.. Ideas?
Edit: Yes this is a simple 1 to 1 relationship. Yes the field needs to be editable.
ANSWER: =DLookUp("[DateEntered]","tblEvent","EventID=" & Forms!frmQuestionnaire!EventID)
Edit: Now that I have it displaying, I cannot edit it!?