Hi I got problem with insert event in access form.
I try use
DoCmd.SetWarnings False
DoCmd.RunSQL "insert into vection ([trailer], [status], [required_date]) Values ([Forms]![Form1]![trailer], 'U', [Forms]![Form1]![req_date]) where [Forms]![Form1]![req_date] not in (select distinct required_date from vection);"
showing error because I using where with Value, is any way to resolve this insert?
Please advise
I try use
DoCmd.SetWarnings False
DoCmd.RunSQL "insert into vection ([trailer], [status], [required_date]) Values ([Forms]![Form1]![trailer], 'U', [Forms]![Form1]![req_date]) where [Forms]![Form1]![req_date] not in (select distinct required_date from vection);"
showing error because I using where with Value, is any way to resolve this insert?
Please advise