What I am trying to acheive is the following:
I want to run a query that checks for possible duplicates
in the background(hidden from user) before saving a new
record. If it finds nothing then it continues on and saves
the record. however if it finds matching records (I have a
query that works and a pop-up form that runs the query, and
displays the records in a listbox upon opening) a pop-up
form or Msgbox(can msgbox's include a listbox????)the
pop-up form or Msgbox displays the possible duplicates.
(something like this fake code)
***********************************************
DoCmd.OpenQuery "90day", acViewNormal, acReadOnly(Hidden??)
If False then
Goto Continue_Save_Click:
ElseIf True Then
DoCmd.OpenForm "frm90DayDuplicates", acNormal, , , acFormReadOnly, acDialog
End If
Continue_Save_Click:
etc........
***********************************************
Then( after the user reviews the records) when the user
clicks the "Ok" button on the Pop-up form/MsgBox it returns
to the Save operation at: "Continue_Save_Click:" to
complete saving the record. Or if not, presses the "cancel save" button which will close the Pop-up/Msgbox and stop
the saving operation.
Is this possible or am I spitting into the wind??
Thanks in advance,
Jim
I want to run a query that checks for possible duplicates
in the background(hidden from user) before saving a new
record. If it finds nothing then it continues on and saves
the record. however if it finds matching records (I have a
query that works and a pop-up form that runs the query, and
displays the records in a listbox upon opening) a pop-up
form or Msgbox(can msgbox's include a listbox????)the
pop-up form or Msgbox displays the possible duplicates.
(something like this fake code)
***********************************************
DoCmd.OpenQuery "90day", acViewNormal, acReadOnly(Hidden??)
If False then
Goto Continue_Save_Click:
ElseIf True Then
DoCmd.OpenForm "frm90DayDuplicates", acNormal, , , acFormReadOnly, acDialog
End If
Continue_Save_Click:
etc........
***********************************************
Then( after the user reviews the records) when the user
clicks the "Ok" button on the Pop-up form/MsgBox it returns
to the Save operation at: "Continue_Save_Click:" to
complete saving the record. Or if not, presses the "cancel save" button which will close the Pop-up/Msgbox and stop
the saving operation.
Is this possible or am I spitting into the wind??
Thanks in advance,
Jim