469,289 Members | 2,137 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,289 developers. It's quick & easy.

Parameter Query Help

I have a form that runs off of a query. The query has you enter three items.

[Enter Request Number] [Enter Case Number] and [Enter Version Number].

When entered correctly it displays the results on the form, however it the numbers entered don't match to any record it displays the form just with no values populated. I want it to display a message box saying "No records match the inputted items" or something to that effect. Something like a Limit to List on a combo box will display an error message if the item you type in is not in that list.
May 3 '06 #1
1 1088
Try this:

If Dcount("*","YourQuery") = 0 Then
MsgBox("No data available meeting your requirements")
End If


If Me.RecordsetClone.RecordCount = 0 Then
MsgBox("No data available meeting your requirements
End If
May 3 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Christine | last post: by
5 posts views Thread by MX1 | last post: by
2 posts views Thread by Julie Wardlow | last post: by
6 posts views Thread by tizmagik | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.