Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft Access > Stumped on upda...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 8 Topic 30256 of 31596
Post > Topic >>

Stumped on update query between tables with no Join fields

by "KC-Mass" <connearneyATcomcastDOTnet> May 13, 2008 at 05:46 PM

I have two tables related to sales transactions and assigned areas.

The tblSalesArea has SalesAreaID an autonumber
                        StartZip, Text
                        EndZip, Text

The tblSales has many fields detailing all the sales.  The two fields of 
concern are
ZipCode, Text and SalesAreaID a number.

I need to populate the tblSales!SalesAreaID with the 
tbleSalesArea!SalesAreaID
based on the zipcode being between tblSalesArea!startzip and 
tblSalesArea!endzip.

This is where I am and it doesn't work.  I suspect because the tables are 
not joined.
I could open two datasets and do it pretty easily in code but that would
be 
slow.
Any Ideas??

Thx

UPDATE tblCentral, tblSalesAreas SET tblCentral.OwnerID = 
tblSalesAreas!CompanyID
WHERE (((tblCentral.SoldToZip)>=[tblSalesAreas]![StartZip] And 
(tblCentral.SoldToZip)
<=[tblSalesAreas]![EndZip]));
 




 8 Posts in Topic:
Stumped on update query between tables with no Join fields
"KC-Mass" <c  2008-05-13 17:46:58 
Re: Stumped on update query between tables with no Join fields
rkc <rkc@[EMAIL PROTEC  2008-05-13 19:06:39 
Re: Stumped on update query between tables with no Join fields
"KC-Mass" <c  2008-05-13 19:38:52 
Re: Stumped on update query between tables with no Join fields
rkc <rkc@[EMAIL PROTEC  2008-05-13 20:17:39 
Re: Stumped on update query between tables with no Join fields
Bob Quintal <rquintal@  2008-05-14 05:46:51 
Re: Stumped on update query between tables with no Join fields
"KC-Mass" <c  2008-05-14 06:53:59 
Re: Stumped on update query between tables with no Join fields
Bob Quintal <rquintal@  2008-05-14 17:40:34 
Re: Stumped on update query between tables with no Join fields
rkc <rkc@[EMAIL PROTEC  2008-05-14 18:32:30 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 11:51:33 CST 2008.