Search box in Data Access Page

Michael Auer

Registered User.
Local time
Yesterday, 21:14
Joined
Apr 2, 2005
Messages
11
Hello, all.

I am new to this forum and am impressed with the knowledge and support offered here.
I have just added a search drop-down to my DAP and added the necessary code to allow me to click on a name in the drop-down to show that record. It works great in finding the records except that the names in the drop-down are not in alphabetical order as I believe the code indicates they should be.

Here is the code:

<SCRIPT LANGUAGE=vbscript FOR=CustID EVENT=onchange>
<!--
Dim rs
Set rs = MSODSC.DefaultRecordset
rs.Find "[CustomerID] = '" & document.all.item("CustID").value & "'", 0, 1, 1

'0 = Skip zero records before starting the search.
'1 = Search in a forward direction.
'1 = Always begin the search with the first record in the recordset.
-->
</SCRIPT>

...as copied from Microsoft's website. Of course, I changed the code to reflect the names of the fields in my DB.

Any help would be greatly appreciated.

Mike
 
how did you manage to do this? I am trying to add a box that contains a list of software names from a table and when you click on the name it goes to that record.

Although Im hoping you have solved the problem of the alphabetical order thing.
 

Users who are viewing this thread

Back
Top Bottom