ACC97: Data in ASP Fields with Spaces Not Committed to Access DB

ID: Q163948

The information in this article applies to:

SYMPTOMS

Moderate: Requires basic macro, coding, and interoperability skills.

When you try to enter or change data on an ASP file that is linked to a Microsoft Access database, the new data will be committed only for fields that do not have spaces in their field names. You will not receive any errors about the data not being saved.

RESOLUTION

In order to have the data saved back to a Microsoft Access database, make sure that the underlying recordset does not contain field names that have space in them. Three possible solutions are as follows:

STATUS

Microsoft has confirmed this to be a problem in Microsoft Access 97.

MORE INFORMATION

Steps to Reproduce Problem

1. Create the following new table called Table1:

      Table: Table1
      -------------------------------
      Field Name: ID
         Data Type: Counter
         Indexed: Yes (No Duplicates)
      Field Name: FirstName
         Data Type: Text
      Field Name: Last Name
         Data Type: Text

2. Create an AutoForm based on this table.

3. Use the "Publish to the Web Wizard" to create an ASP File. Please note

   this must be publish to a site which supports ASP file formats and has
   a system DSN assigned to your database.

4. Use a Web browser to open your new ASP file.

5. Enter and save data in your ASP form.

6. Check the underlining data in the table.

   Note that the data you entered into the FirstName field is saved, but
   that the data you entered into the Last Name field is not saved.

REFERENCES

For more information about aliasing fields, search the Help Index for "alias," or ask the Microsoft Access 97 Office Assistant.

Additional query words: missing gone saved maintained

Keywords          : kbinterop GnlDe IntpWeb IntAsp 
Version           : 97
Platform          : WINDOWS
Hardware          : x86
Issue type        : kbbug

Last Reviewed: May 18, 1999