Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update, SQL statement ! Help

Status
Not open for further replies.

hisham

IS-IT--Management
Nov 6, 2000
194
What is the SQL statement that allow to update a table using other table,
i have 2 tables the first is "A" contains the field "CardNomber" The second table "B" contain the field "CardNomber1"
i used:
UPDATE A SET CardNomber= [CardNomber]+![CardNomber1];
Thanks in advance
 
Hisham,
Are you certain what you want isn't to write an Append query. Based on what you have above, it looks as though you want to set A.CardNomber = A.CardNomber + B.CardNomber1. You haven't specified any criteria to meet, so the query will know which records to update. Make sense?

V
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top