Go to new record if no results

M

Mike Rotch

Here's what I have -
I have a form (frmProduction) that references a query
(qryProduction). My table (tblProduction) has a date
field that is indexed (no duplicates).
My query has a criteria of "[What production date?]".
The question comes up and is able to open the form with a
filter to the date that was typed.

Here's what I need -
If the date they typed doesn't match any records, I want
it to go to a new record with the date they typed in the
date field.

Is this possible?

thanks.
Mike
 
R

Rick Brandt

Mike Rotch said:
Here's what I have -
I have a form (frmProduction) that references a query
(qryProduction). My table (tblProduction) has a date
field that is indexed (no duplicates).
My query has a criteria of "[What production date?]".
The question comes up and is able to open the form with a
filter to the date that was typed.

Here's what I need -
If the date they typed doesn't match any records, I want
it to go to a new record with the date they typed in the
date field.

Is this possible?

If your query is updateable (many are not) then this is what should happen
automatically.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top