This is my first request for help, so forgive any newbie mistakes...
I'm working in Access 2016, and have built a database that, among other items, has two tables that are linked: tblClient and tblCaregiver. The primary key for tblClient is stxCaseNumber. The primary key for tblCaregiver is idsCaregiverID. In addition, there is a field stxCaseNumber in tblCaregiver. In the Relationships diagram, tblClient is joined to tblCaregiver at stxCaseNumber, in a one-to-many relationship.
I initially set up a main form to enter client data into, with a caregiver subform. Up till last week, every time I entered client data into the main form, then entered data into the caregiver subform, the entries were linked and working correctly. However, late last week, I tried entering a new client & caregiver, and instead got an error:
The LinkMasterFields property setting has produced this error: 'Expected: identifier or bracketed expression'
The error occurred after I entered the client data and had started typing in the caregiver subform. When I open the Property Sheet for the subform, the master field is the stxCaseNumber from the tblClient, while the child field is the stxCaseNumber from the tblCaregiver. To my knowledge, I've never manually edited those master/child field settings prior to this error, I had instead let the Form Wizard build the forms for me.
I did some Googling last week and tried to manually enter both the master and child fields, but got the same error. I have also tried: creating a new subform from scratch; deleting the existing fields in the subform and re-adding them; and creating a whole new main form with a new subform. All resulted in the same error.
To my knowledge, the only thing I did between the forms working correctly and now is clean up some queries that were designed wrong, and then redesign some reports. I haven't deleted any tables.
I would appreciate any help or suggestions people have...
Brett
I'm working in Access 2016, and have built a database that, among other items, has two tables that are linked: tblClient and tblCaregiver. The primary key for tblClient is stxCaseNumber. The primary key for tblCaregiver is idsCaregiverID. In addition, there is a field stxCaseNumber in tblCaregiver. In the Relationships diagram, tblClient is joined to tblCaregiver at stxCaseNumber, in a one-to-many relationship.
I initially set up a main form to enter client data into, with a caregiver subform. Up till last week, every time I entered client data into the main form, then entered data into the caregiver subform, the entries were linked and working correctly. However, late last week, I tried entering a new client & caregiver, and instead got an error:
The LinkMasterFields property setting has produced this error: 'Expected: identifier or bracketed expression'
The error occurred after I entered the client data and had started typing in the caregiver subform. When I open the Property Sheet for the subform, the master field is the stxCaseNumber from the tblClient, while the child field is the stxCaseNumber from the tblCaregiver. To my knowledge, I've never manually edited those master/child field settings prior to this error, I had instead let the Form Wizard build the forms for me.
I did some Googling last week and tried to manually enter both the master and child fields, but got the same error. I have also tried: creating a new subform from scratch; deleting the existing fields in the subform and re-adding them; and creating a whole new main form with a new subform. All resulted in the same error.
To my knowledge, the only thing I did between the forms working correctly and now is clean up some queries that were designed wrong, and then redesign some reports. I haven't deleted any tables.
I would appreciate any help or suggestions people have...
Brett