Sorry about this. Know it's a frequent question and I've searched the archives and got half the answer.
I've a DLookUp that prevents a user entering an organisation with the same first line of address:
If Not IsNull(DLookup("[Organisation]", "tblOrganisations", "[Organisation]= """ & Me![Organisation] & """ And [Address1]= """ & Me![Address1] & """))
I learnt that to accomodate apostrophes for the organisation I had to enclose them in 3 double quotes. To accomodate apostrophes on the Address1 I did exactly the same but get the syntax error message 3075.
Any ideas?
I've a DLookUp that prevents a user entering an organisation with the same first line of address:
If Not IsNull(DLookup("[Organisation]", "tblOrganisations", "[Organisation]= """ & Me![Organisation] & """ And [Address1]= """ & Me![Address1] & """))
I learnt that to accomodate apostrophes for the organisation I had to enclose them in 3 double quotes. To accomodate apostrophes on the Address1 I did exactly the same but get the syntax error message 3075.
Any ideas?