I have a program that calls for a sub routine to process the records then return to the original routine. There is nothing that is passed to or from this process.
Both programs run and do as they are designed to do except when the sub routine is returning to the original routine.
"THIS IS THE ORIGINAL ROUTINE"
'THIS CALLS UP THE SUB ROUTINE Egroup"
Call Egroup
'ON RETURN REOPEN FORM WITH FILTERED QUERY
DoCmd.OpenForm "Email_List_Selection", acNormal, "Email_List_Arts"
"THIS IS THE SUB ROUTINE Egroup"
"(PROCESSES THE DATABASE RECORDS CORRECTLY THEN RETURNS TO ORIGINAL ROUTINE)"
rst.close
Set rst = Nothing
Set DB = Nothing
Exit_cmdExit_Click:
DoCmd.OpenForm "Email_List_Selection", acNormal, "Email_List"
DoCmd.ShowAllRecords
Exit Sub
Err_Oops_Click:
msgbox Err.Description
Rtrn_Click
Resume Exit_cmdExit_Click
End Sub
Everything works up until the sub routine is returned to the original routine. At that point I start getting "Enter Parameter Value" errors for three fields that I have checked to make sure they are in the queries. Everything is in the query that the "Enter Parameter Value" error ask for.
Does anybody have any thoughts on this, what could cause it and what I would need to check to get it back to working correctly?
Thank you for your help and your time.
Robert M
Both programs run and do as they are designed to do except when the sub routine is returning to the original routine.
"THIS IS THE ORIGINAL ROUTINE"
'THIS CALLS UP THE SUB ROUTINE Egroup"
Call Egroup
'ON RETURN REOPEN FORM WITH FILTERED QUERY
DoCmd.OpenForm "Email_List_Selection", acNormal, "Email_List_Arts"
"THIS IS THE SUB ROUTINE Egroup"
"(PROCESSES THE DATABASE RECORDS CORRECTLY THEN RETURNS TO ORIGINAL ROUTINE)"
rst.close
Set rst = Nothing
Set DB = Nothing
Exit_cmdExit_Click:
DoCmd.OpenForm "Email_List_Selection", acNormal, "Email_List"
DoCmd.ShowAllRecords
Exit Sub
Err_Oops_Click:
msgbox Err.Description
Rtrn_Click
Resume Exit_cmdExit_Click
End Sub
Everything works up until the sub routine is returned to the original routine. At that point I start getting "Enter Parameter Value" errors for three fields that I have checked to make sure they are in the queries. Everything is in the query that the "Enter Parameter Value" error ask for.
Does anybody have any thoughts on this, what could cause it and what I would need to check to get it back to working correctly?
Thank you for your help and your time.
Robert M