Skip to main content

Search

Search

Vb Script Sorting

Comments

2 comments

  • Avatar
    Legacy Poster

    I want to do the same operation.  Waiting for Help. thank you.

    0
  • Avatar
    Shotaro Ito

    Hi fongko,

    You cannot use Data Entry Form's Dropdown list to select a connected database's record.

    Dropdown list is to select just a field.

     

    To sort connected database, from File > Database Connection Setup,

    Select the database (ex. tiffany), then from [Sort] tab, specify soft fields (ex. Sheet1$.Store Location).

     

    If you're not intended to use Database connection and just want to sort dropdown list,

    in VB Script, modify line 15 like below

    (sort by "Store Location" in ascending order)

    Set rs = objConn.Execute("SELECT distinct [Store Location] FROM [Sheet1$] ORDER BY [Store Location] ASC")
    0

Please sign in to leave a comment.