NewOptNum = DMax"[OPTION_NUM]", "tblQuote_Options", "[QUOTE_VER]=" & Me![QUOTE_VER])+1
What's wrong with this? I am trying to automatically create a number that is 1 higher than the highest value in the table (and it works in another form). However, "[QUOTE_VER]" is a string in the format "01-5000-PE".
When I run this code I get "Runtime error 2471: The expression you entered as a query parameter produced this error:'The object doesn't contain the Automation object 'PE.''
Anybody got any suggestions?
What's wrong with this? I am trying to automatically create a number that is 1 higher than the highest value in the table (and it works in another form). However, "[QUOTE_VER]" is a string in the format "01-5000-PE".
When I run this code I get "Runtime error 2471: The expression you entered as a query parameter produced this error:'The object doesn't contain the Automation object 'PE.''
Anybody got any suggestions?