Zum Hauptinhalt gehen

Suche

Suche

Vb Script Sorting

Kommentare

2 Kommentare

  • 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

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.