Discussion Locked

Access 2000 HTML Document

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have created an Access 2000 HTML document. I have a record selector but a large quantity of records. My qry\tbl has 6 categories and I have created 6 combo\list boxes and want to specify a different category for each list box to pull that particular record and simplify the searching for the user.

3 replies

by bill_h

(Based on our e-mail discussion)

What you want to do may require not only scripting, but probably multiple record selectors as well - one for each combo box. The multiple record selectors would allow you to point to multiple records
simultaneously. The combo boxes would have to be populated thru scripting, since the basic combo box design is intended to be bound to a single data field in multiple records. Scripting would also have to be used to synchronize the record
selectors. In theory, it seems you could have one record selector visible (all others set to NOT visible, width=0, etc.) and use code to send MoveFirst, MoveNext, MovePrevious and MoveLast commands to the other record selectors as needed. But that sounds like a real pain to me...

IMHO, it would be much easier to create the page thru FrontPage (or other HTML tool) and use scripting to drive the entire process.

(Samples were sent through e-mail.)

The first is a sample ASP page that retrieves
records from an Access database and populates combo box and textarea controls with the record contents. The page offers an explanation of the difference between the two - forgive me if this is stuff you already know. The second file is an Access database for the demo page. The ASP page is pretty simple, and not very pretty...I didn't include any functions to clean up the display, format the phone number, etc. If you find this approach useful, I'm sure you have the knowledge and/or resources to take careofthat, right?

As far as setup goes, if you have a test web server, you should be able to drop both the files in the web root directory, and point your browser to the ASP page. One caveat: the ASP page expects to have the Microsoft Jet 4.0 OLE DB Provider registered on the web server; this may already be the case,
depending on the hardware/software scenario.

Let me know if you have any questions.

This discussion is closed to new replies.