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

Linked fields not working correctly- PLEASE HELP DEADLINE LOOMING!

Guest
Oct 27, 2009 Oct 27, 2009

Copy link to clipboard

Copied

I have two tables. The first is called Orders and contains a autonumber field named ID. This field is linked to a field named OrderID in another table named ProductOrders. I am using a submission form with a cfinclude to submit to both tables. There should only be one Orders.ID and numerous ProductOrders.OrderID (but they should be the same number). When I submit the form there are no error messages but the ProductOrders.OrderID is blank and therefore not linked to Orders.ID. What should I be looking for? I have linked the fields in Access in properties and relationships. What else?

TOPICS
Advanced techniques

Views

6.2K

Translate

Translate

Report

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

correct answers 1 Correct answer

LEGEND , Oct 27, 2009 Oct 27, 2009

Yes the sql has to be in a cfquery tag.  You'll also have to convert your 2nd cfinsert to a cfquery because the orderid is not coming from a form.

This:

where field1 = the value you just entered

and field2 = the value you just entered

would resemble something like

where saledate = <cfqueryparam value = "#form.saledate#">

and TerritoryManager = <cfqueryparam value = "#form.TerritoryManager#">

etc

If this is a school assignment, you might be ok.  If it's for real, it needs a lot of work to userproof it.

Votes

Translate

Translate
Valorous Hero ,
Oct 31, 2009 Oct 31, 2009

Copy link to clipboard

Copied

LATEST

I would suggest you start a new thread for your question. It is generally considered bad form to tack on a new question to someone else's thread.

Votes

Translate

Translate

Report

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
Documentation