Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

form fields for two tables

Guest
Apr 18, 2006 Apr 18, 2006
How can I get different form fields to pass data to two different tables.
I have a very large form with about 2000 cells and SQL only holds 1024.
I can retrieve data from the tables with queries, but the second half of the form will not submit data to the second table.
An error message says that the column cannot be found in the first table.
Any help will be appreciated.
Thanks.
TOPICS
Advanced techniques
438
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 18, 2006 Apr 18, 2006
You might have attempted to insert or update form data into the first table, that was meant for the second table. Why don't you code the names of the form fields with indices, e.g. fieldname_1, fieldname_2, which immediately tells you which table the data will go to.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 18, 2006 Apr 18, 2006
It's very easy as long as you are using cfquery and not cfinsert.

What percentage of your users do you expect to fill out all 2000 form fields?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 18, 2006 Apr 18, 2006
LATEST
What percentage of your users do you expect to fill out all 2000 form fields?
100%, assuming, of course, Chief13 works for the IRS.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources