Can anyone help me please? I have set up Query1 with 2 prompts: (id) and (case). in my main form, I would like to check tblData to see if the ID and Case exist. If it does, a messagebox will alert the user that a report already exists. My code looks like this:
dim myquery as querydef
set myquery=dbengine(0).databases(0).querydef ("query1")
myquery.parameters("checkID")=me.ID
myquery.parameters("checkCase)=me.Case
[now i'm missing something here...]
if not EOF then
msgbox ("An Initial report already exists. You must make this a Supplement.")
exit sub
I know I'm suppose to "get" my recordset here but I can't quite seem to get the code down.
Any advise would be great!
dim myquery as querydef
set myquery=dbengine(0).databases(0).querydef ("query1")
myquery.parameters("checkID")=me.ID
myquery.parameters("checkCase)=me.Case
[now i'm missing something here...]
if not EOF then
msgbox ("An Initial report already exists. You must make this a Supplement.")
exit sub
I know I'm suppose to "get" my recordset here but I can't quite seem to get the code down.
Any advise would be great!