I’m struggling to build an expression to link fields from two different tables via a form.
I have a membership form frmMember which displays and updates all data entered storing it in a table tblMembers.
In the tblMembers I have a field ‘LoyaltyID
My problem is I want to add a text field to the membership form by allowing the user to add the number of a loyalty card which will then be stored in a different table tbl LoyaltyCard. Also if the record is retrieved then the number should be saved and shown. some members may nnot yet qualify for this Loyalty card.
When I use properties I cannot obviously find the fields from the loyalty card because the main form source is the tblMembers.
I’ve tried different code and queries but get various errors from the text box basically saying cannot find the object.
I need to be able to enter a number – possibly with zeros to start i.e 000123 which will then be linked to the corresponding MemberID.
The Tables and their attributes are
tblMembers contains MemberID as the key field (autonumber) and LoyaltyID as field
tblLoyaltyCard contains LoyaltyID (autonumber), LNumber (number) to be entered from the membership form.
Any advice would be appreciated Thanks in advance.