Re: how to create a query to handle "No Such Data Found"

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Mon, 11 Jun 2007 04:59:15 -0700, Fuzuy wrote:

I try to create an interface to display records/ or posting message on
a form when I select data from a table which meet the combo box
values to diaplay on a form, however, sometime data of combination of
two combo boxes are not exist..

how should I do so that when it has data it displays the data on a
Form, while no criteria meets then it posts a message "No Such Data
Found" and be also direct back to combo boxes menu.

Thanks in advance for your help..

The form that displays the data is the form with the combo box?
Code the form's Load event:

If Me.RecordsetClone.RecordCount = 0 then
MsgBox "No Records Found"
Me.ComboName.SetFocus
End If
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
.



Relevant Pages

  • Re: Update Table from Form
    ... calling for 2 text boxes. ... Please respond only to this newsgroup. ... I do not reply to personal e-mail ...
    (microsoft.public.access.forms)
  • Re: From text box to field
    ... but I'm lost for the answer. ... have two text boxes in a form: one for FirstName, ... Please respond only to this newsgroup. ... I do not reply to personal e-mail ...
    (comp.databases.ms-access)
  • Re: How do I wrap text in a list box?
    ... boxes in the print preview view. ... drop-down list portion will still be just one line). ... Please respond only to this newsgroup. ... I do not reply to personal e-mail ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Clear option group
    ... On Sat, 10 Mar 2007 17:37:32 GMT, Ivor Williams wrote: ... want to clear both check boxes. ... Please respond only to this newsgroup. ... I do not reply to personal e-mail ...
    (microsoft.public.access.forms)
  • Re: merge with an "online form" problem with text box
    ... I definitely used the forms toobar and not the Controls toolbox with the ... "Charles Kenyon" wrote: ... > This message is posted to a newsgroup. ... >> had to be a reason my text boxes were misbehaving. ...
    (microsoft.public.word.mailmerge.fields)