Results 1 to 5 of 5

Thread: Agency not present...

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Mar 2005
    Posts
    2,941

    Agency not present...

    The project start with a selection in textbox(userform SELECTION)...
    In effect the code make a filter and show data into MODIFICHE userform...
    Now my prob is:
    If the user select and agency not present in the mdb the userform MODIFICHE is show without data...
    I would want before the userform MODIFICHE is show, to make appear a msgbox similar "NO AGENGY for code xxxxx" Where xxxx is the value inserted in textbox of SELECTION userform...

    note:change pat of mdb
    note: i have maked button with Sheridan ocx....
    Last edited by luca90; Jan 11th, 2009 at 06:35 AM.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Agency not present...

    Just do a BOF and EOF check after the recordset has been created. If they are true, then no records were returned, therefore, the ender code is not in the database.

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Mar 2005
    Posts
    2,941

    Re: Agency not present...

    Quote Originally Posted by Hack
    Just do a BOF and EOF check after the recordset has been created. If they are true, then no records were returned, therefore, the ender code is not in the database.
    Wow!!! not for me! sure:-(
    Tks in other case.
    Sal.

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Agency not present...

    Quote Originally Posted by luca90
    Wow!!! not for me! sure:-(
    Tks in other case.
    Sal.
    I don't know what you mean by this.

  5. #5

    Thread Starter
    PowerPoster
    Join Date
    Mar 2005
    Posts
    2,941

    Re: Agency not present...

    Quote Originally Posted by Hack
    I don't know what you mean by this.
    Hack tks for suggestion... and you are right...
    But to make the code into my project i have cut and paste a milion of line code...

    To make the modify you suggest me, peraphs i make that in one year;-(

    See the level of my knoledgment in my profile....Newbie 100%

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width