ACC97: Lookup Fields Ignored When Exporting to Internet FormatsID: Q162908
|
Moderate: Requires basic macro, coding, and interoperability skills.
The data that is displayed in table Lookup fields that you created with
the Lookup Wizard is ignored when you export the table to HTML, IDC, or
ASP format. The bound column for the Lookup field is displayed in the Web
browser, not the lookup data that you see when you open the table in
Datasheet view in Microsoft Access.
If you exported to HTML format by using the Save As/Export command on the
File menu, you did not click to select the Save Formatted check box in the
"Save Table <Table Name> In" dialog box.
If you exported to Internet Database Connector (IDC) or Active Server
Pages (ASP) format, the SQL statement that Microsoft Access generated
contains the actual data that is stored in the table's Lookup field. The
bound column of a Lookup field's RowSource property is what is actually
stored in the table, not necessarily what you see in Datasheet view of the
table in Microsoft Access.
If you want to create static HTML files, click Save As/Export on the File
menu, and then click to select the Save Formatted check box in the "Save
Table <Table Name> In" dialog box. If you click Save As HTML on the File
menu to create static HTML files, the files you create from tables or
queries automatically include the Save Formatted option.
If you are exporting to IDC or ASP format, create an AutoLookup query that
includes the original table, as well as the table from which the Lookup
field obtains its data. Use the corresponding fields from the lookup table
in the query instead of the Lookup fields from the original table. Then
export the query to IDC or ASP format.
For example, if you open the sample database Northwind.mdb and view the
Orders table in Datasheet view, you see the complete customer name in the
Customer column. However, if you export the Orders table to IDC or ASP
format, only the CustomerID is exported; CustomerID is the bound column in
the Customer Lookup field in the Orders table. If you create an AutoLookup
query that contains both the Customers and Orders tables, you can add all
the fields from the Orders table to the QBE grid, except the CustomerID
field; add the CompanyName field from the Customers table instead. When you
export the query, it contains the same data as the Orders table, including
the full customer name.
For more information about creating AutoLookup queries, search the Help
Index for "AutoLookup queries," or ask the Microsoft Access 97 Office
Assistant.
For more information about saving Microsoft Access objects in HTML format,
search the Help Index for "saving database objects, saving in Internet/Web
formats," or ask the Microsoft Access 97 Office Assistant.
For more information about configuring Microsoft Internet Information
Server permissions, please refer to the IIS Help Index.
Additional query words: HTML IDC ASP export primary key IIS PWS Peer personal web server
Keywords : kbinterop IntAsp HtmView
Version : 97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: April 22, 1999