Skip to main content

Search

Search

Accept Empty Value For Filter Textbox Using Vb Script

Comments

3 comments

  • Avatar
    Ian Cummings
    Moderator

    What sort of operator are you using with your query?

     

    I would recommend you update to SR4 as a matter of course: http://www.seagullscientific.com/label-software/fixes_101.aspx

    0
  • Avatar
    Legacy Poster

    Hi Ian C,

     

    Thanks for the reply.

     

    For filtering, i use query prompt in database Bartender.

     

    I'm using query as below,

     

    ($Sheet1.PartNumber = ?QueryPrompt1)

     

    This will pop up an entry form to let me enter the part number and will filter the records.

     

    If the users left it blank, it will show all the records. (Currently, an error message will definately show up when leave it blank)

     

    I think vb script can help me on it. Would need advice on it.

     

    Thanks. 

    0
  • Avatar
    Ian Cummings
    Moderator

    Have you tried using the "Begins with" operator, and teamed that up with the "Select at print time" record selection dialog.  This is normally a good configuration for the sort of behaviour you want.

    0

Please sign in to leave a comment.