Help and Support
 

powered byLive Search

FP98: Too Few Parameters Error Previewing Page w/Database Region

Retired KB ArticleThis article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
Article ID:181209
Last Review:December 1, 2000
Revision:1.0
This article was previously published under Q181209

SYMPTOMS

When you preview a page that contains a database region, you may see the following error message in the Web browser:
Database Error: [Microsoft][ODBC Microsoft Access 97 Driver] Too few parameters. Expected 1.

Back to the top

CAUSE

This behavior occurs when the field name you specified in your SELECT statement does not exist in the database being queried. Most often this happens if you have mistyped the query.

Back to the top

RESOLUTION

To resolve this behavior, you must specify the correct field name in your SELECT statement. To do this, follow these steps:
1.Determine the correct field name in your database.

1.Start Microsoft Access and open your database.
2.Select the table you are querying and then click Design View.
3.Note the name of the field you would like to query. The field name appears in the Field Name column.
4.On the File menu, click Exit.
2.Start FrontPage Editor and open the page that contains the database region.
3.Right-click any column value in the database region and then click Database Region Properties on the menu that appears.
4.In the SELECT statement, type the name of the field you noted in step 1 For example, if the field name is Field1, type your query like this:
SELECT Field1 from TABLE
NOTE: Your query may be different depending on the name of your table and the number of fields you are querying.
5.Click Finish.
6.On the File menu, click Save.

Back to the top

MORE INFORMATION

For additional information, please see the following article in the Microsoft Knowledge Base:
175771 (http://support.microsoft.com/kb/175771/EN-US/) FP98: How to Display Contents of a Database Using ASP

Back to the top


APPLIES TO
Microsoft FrontPage 98 Standard Edition

Back to the top

Keywords: 
kbprb KB181209

Back to the top

Article Translations

 

Other Support Options

  • Need More Help?
    Contact a Support professional by E-mail, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.