Thanks for your reply, John.
OnCurrent won't work here because I use this function to set the form
record source. That forces OnCurrent to be reissued which then resets
the record source which reissues OnCurrent,...ad rebooteum.
Any other ideas?
Max
Hi Max,
In that case I'd rewrite the valid part number test so it didn't depend
on the point reached by things over which I had no control. One
possibility would be to perform the test in the procedure that launchs
the form, and then pass something in OpenArgs to tell the form how to
behave.
Another would be to create your own RecordSet rather than using the
combobox's. Or you could just do
If DCount(...) Then
passing DCount the same query you're using for the combobox's RowSource.
>Thanks for your reply, John.
>
[quoted text clipped - 53 lines]
>>>Thanks for your help.
>>>Max
--
John Nurick [Microsoft Access MVP]
Please respond in the newgroup and not by email.
Max Yaffe - 09 Mar 2005 07:55 GMT
Thanks, John.
That's essentially what I did although it seems a shame the obvious,
easy way wouldn't work. I rewrote the query using an SQL string so I
could effectively clone it. Here's my solution leaving out the
details:
Dim RS As Recordset
Set RS = DB.OpenRecordset(Me.cboPart.RowSource)
RS.FindFirst "Part = '" & myPart & "'"
If (RS.NoMatch = True) Then
' take appropriate corrective action
End If
RS.Close
Thanks for your help.
Max
>Hi Max,
>
[quoted text clipped - 68 lines]
>>>>Thanks for your help.
>>>>Max