I have the following in a normal form, coded to a button and it works fine :
me.test = DMax("[Warranty No]", "Guarantee", "[Company] = '" & Me.Company & "'") + 1
i then included the same statement into a sql update command and get "Expected end of statement" error with the "[Warranty No]" highlighted. "[Warranty No]" writing to a text value.
Any ideas please ?
me.test = DMax("[Warranty No]", "Guarantee", "[Company] = '" & Me.Company & "'") + 1
i then included the same statement into a sql update command and get "Expected end of statement" error with the "[Warranty No]" highlighted. "[Warranty No]" writing to a text value.
Any ideas please ?