Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

No Data found in a form

Status
Not open for further replies.

ind

Programmer
Mar 9, 2000
121
US
I have a form that uses several diffrent types of query method (By Date, By Customer, By Invoice Status, ect.) As the user makes the choice of query method the subform is requeried to make the parameter. I want to display a msgbox telling the user that no record match the criteria set.<br>How can I do this?<br>Thanks
 
place this in your before update event<br><br>Dim rs As Recordset<br>Set rs = Me![yoursubForm].Form.RecordsetClone<br>If rs.RecordCount = 0 Then<br>MsgBox &quot;no records found.&quot;<br>End If<br>rs.Close
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top