This is what I am trying to do:
User enters their data on the date entry page and clicks the submit button. Next I want to query the database (access db) and see if a record already exists and if not then insert the new data. If the record for this person already exists, then redirect to error page for a few seconds then redirect to entry page.
I was thinking I would query the database and populate a recordset. If the recordset is empty then continue to the insert statement, if not then go to error page. How can I tell if the recordset is empty? Is this the best way?
Thanks for your help,
Paul
User enters their data on the date entry page and clicks the submit button. Next I want to query the database (access db) and see if a record already exists and if not then insert the new data. If the record for this person already exists, then redirect to error page for a few seconds then redirect to entry page.
I was thinking I would query the database and populate a recordset. If the recordset is empty then continue to the insert statement, if not then go to error page. How can I tell if the recordset is empty? Is this the best way?
Thanks for your help,
Paul