Here my statement:
DoCmd.RunSQL "INSERT INTO [timesheet header](flag) VALUES(-1) WHERE [timesheet header].SERVICE_COMPANY_NO = serviceno AND [timesheet header].PERIOD_STARTING = start;
I know the syntax of this querys is probly well off but i have tried so many different ways but can't get it workin please help ; )
I get runtime errors of missing semi colon at end of statement, but I already have one.
basically with this statement I want to append a value in a table called timesheet header and the field I want to append is called flag -its set to Yes/No in table propertys. But I want to use a where clause to narrow this down to one record basically WHERE [timesheet header].SERVICE_COMPANY_NO = serviceno AND [timesheet header].PERIOD_STARTING = start;
serviceno and start are set values in my VBA code.
DoCmd.RunSQL "INSERT INTO [timesheet header](flag) VALUES(-1) WHERE [timesheet header].SERVICE_COMPANY_NO = serviceno AND [timesheet header].PERIOD_STARTING = start;
I know the syntax of this querys is probly well off but i have tried so many different ways but can't get it workin please help ; )
I get runtime errors of missing semi colon at end of statement, but I already have one.
basically with this statement I want to append a value in a table called timesheet header and the field I want to append is called flag -its set to Yes/No in table propertys. But I want to use a where clause to narrow this down to one record basically WHERE [timesheet header].SERVICE_COMPANY_NO = serviceno AND [timesheet header].PERIOD_STARTING = start;
serviceno and start are set values in my VBA code.