If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Updating a table from a query

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-22-03, 16:53
pokermagic pokermagic is offline
Registered User
 
Join Date: Oct 2003
Location: santa clara
Posts: 25
Updating a table from a query

I'm trying to update a table which hold some rebate information. I have a query which I parsed some data out and holds the information which I need to update the table... My SQL is below

UPDATE Approved_Details_Table INNER JOIN rcf_good ON Approved_Details_Table.Rebate_Approved_ID = rcf_good.Rebate_Approved_ID SET Approved_Details_Table.Check_Date = [rcf_good]![checkdate], Approved_Details_Table.Check_Number = [rcf_good]![checknumber], Approved_Details_Table.Mail_Date = [rcf_good]![maildate], Approved_Details_Table.Check_Amount = [rcf_good]![amount], Approved_Details_Table.Outsourced = True, Approved_Details_Table.Paid = True
WHERE (((Approved_Details_Table.Rebate_Approved_ID)=[rfc_good]![Rebate_Approved_ID]));

It keeps telling me Operation Must Use An Updateable Query.

rfc_good is the query which holds the data which I'm trying to update the Approved_Details_Table.

Thank you.
Reply With Quote
  #2 (permalink)  
Old 10-22-03, 17:01
bstjean bstjean is offline
Registered User
 
Join Date: Sep 2002
Location: Montreal, Canada
Posts: 219
Re: Updating a table from a query

Quote:
Originally posted by pokermagic
I'm trying to update a table which hold some rebate information. I have a query which I parsed some data out and holds the information which I need to update the table... My SQL is below

UPDATE Approved_Details_Table INNER JOIN rcf_good ON Approved_Details_Table.Rebate_Approved_ID = rcf_good.Rebate_Approved_ID SET Approved_Details_Table.Check_Date = [rcf_good]![checkdate], Approved_Details_Table.Check_Number = [rcf_good]![checknumber], Approved_Details_Table.Mail_Date = [rcf_good]![maildate], Approved_Details_Table.Check_Amount = [rcf_good]![amount], Approved_Details_Table.Outsourced = True, Approved_Details_Table.Paid = True
WHERE (((Approved_Details_Table.Rebate_Approved_ID)=[rfc_good]![Rebate_Approved_ID]));

It keeps telling me Operation Must Use An Updateable Query.

rfc_good is the query which holds the data which I'm trying to update the Approved_Details_Table.

Thank you.
Well, first make sure you have the porper MySQL syntax!!

[rcf_good]![maildate] is Access syntax... Won't wok in MySQL!
Reply With Quote
  #3 (permalink)  
Old 10-22-03, 17:21
pokermagic pokermagic is offline
Registered User
 
Join Date: Oct 2003
Location: santa clara
Posts: 25
ooops sorry.. wrong category.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On