Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Help on a simple query

Discussion in 'Information Technology' started by Mike C, Jul 28, 2006.

Tags:
  1. Mike C

    Mike C
    Expand Collapse
    Guest

    I've created an Contact List/Address Book and have it set up so that when the
    database starts, a dialogue box pops up and I enter the surname of the person
    I'm looking for, hit enter and the form displays the information I need.
    Everything was running along swimmingly until I entered a name that WASN'T in
    the database and when the form displayed - there was no information, no
    fields, nada - just the background image and then I have to Ctrl/Alt/Del to
    open the Task Manager to close Access. When I select Exit - it tells me that
    Access is waiting for a response from me but there is nothing there.

    Obviously I need to add something to the query that runs the form so that
    when I enter a name that ISN'T found, I get a message box telling me that
    there was no record found and the pop-up dialogue box re-appears asking me to
    enter another name.

    If anyone has any suggestions as to HOW I'd do this - it'd be appreciated if
    you could speel it out for me in very plain language.

    Thanx.
     
  2. Loading...


  3. Tom Wickerath

    Tom Wickerath
    Expand Collapse
    Guest

    Hi Mike,

    Off hand, it sounds like you might be encountering the issue discussed in
    this Knowledge Base article:

    (ACC2000:) Form Opened in Form View Is Completely Blank
    http://support.microsoft.com/?id=209734

    Note: I added the parentheses around the "ACC2000" in the title, since this
    same issue occurs in other versions of Access as well. One solution would be
    to display the results of your search in a subform. An advantage of this
    method, besides avoiding the blank form syndrome, would be that you could
    display many results. So, for example, if you entered "Mike C", you could
    display your address info. for your home, work, that vacation home in the
    Carribean (smile), etc.

    I have a sample QBF (Query by Form) database that I can send to you, if you
    want to see this idea in action. If you are interested, send me a private
    e-mail message with a valid reply-to address. My e-mail address is available
    at the bottom of the contributor's page indicated below.

    Please do not post your e-mail address (or mine) to a newsgroup reply. Doing
    so will only attract the unwanted attention of spammers.


    Tom Wickerath
    Microsoft Access MVP

    http://www.access.qbuilt.com/html/expert_contributors.html
    http://www.access.qbuilt.com/html/search.html
    __________________________________________

    "Mike C" wrote:

    > I've created an Contact List/Address Book and have it set up so that when the
    > database starts, a dialogue box pops up and I enter the surname of the person
    > I'm looking for, hit enter and the form displays the information I need.
    > Everything was running along swimmingly until I entered a name that WASN'T in
    > the database and when the form displayed - there was no information, no
    > fields, nada - just the background image and then I have to Ctrl/Alt/Del to
    > open the Task Manager to close Access. When I select Exit - it tells me that
    > Access is waiting for a response from me but there is nothing there.
    >
    > Obviously I need to add something to the query that runs the form so that
    > when I enter a name that ISN'T found, I get a message box telling me that
    > there was no record found and the pop-up dialogue box re-appears asking me to
    > enter another name.
    >
    > If anyone has any suggestions as to HOW I'd do this - it'd be appreciated if
    > you could speel it out for me in very plain language.
    >
    > Thanx.
     

Share This Page