Parameter Query Help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stephan625
    New Member
    • May 2006
    • 1

    #1

    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.
  • wlc04
    New Member
    • May 2006
    • 70

    #2
    Try this:

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

    OR

    If Me.RecordsetClo ne.RecordCount = 0 Then
    MsgBox("No data available meeting your requirements
    End If

    Comment

    Working...