A Microsoft Office (Excel, Word) forum. OfficeFrustration

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   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

update queries



 
 
Thread Tools Display Modes
  #1  
Old June 8th, 2004, 10:46 AM
angie
external usenet poster
 
Posts: n/a
Default update queries

i have an update query and i want to update a lookup field. how can i select the data/value instead of typing it? because if i type it the value does not become updated when i change the value in the lookup source.

moreover i encounter problems with the criteria i am trying to set in another field. the records are numbers and i want to select for example a record that is equal to number 5 and the records that are between 100 and 150 and between 312 and 314. could you give me a hint on how to build the criteria?

thank you in advance for your help!
  #2  
Old June 8th, 2004, 02:27 PM
[MVP] S.Clark
external usenet poster
 
Posts: n/a
Default update queries

The first paragraph needs more description. Please break down to smaller
pieces.

The 2nd PP:
SELECT *
FROM tablename
WHERE
field = 5 OR
field Between 100 And 150 OR
field Between 312 and 314


--
Steve Clark, Access MVP
FMS, Inc.
Professional Solutions Group
http://www.fmsinc.com/consulting/

"angie" wrote in message
news
i have an update query and i want to update a lookup field. how can i
select the data/value instead of typing it? because if i type it the value
does not become updated when i change the value in the lookup source.

moreover i encounter problems with the criteria i am trying to set in

another field. the records are numbers and i want to select for example a
record that is equal to number 5 and the records that are between 100 and
150 and between 312 and 314. could you give me a hint on how to build the
criteria?

thank you in advance for your help!



  #3  
Old June 8th, 2004, 03:11 PM
angie
external usenet poster
 
Posts: n/a
Default ΘΕΜΑ: update queries

in the update query i want to fill in the "update to" in a particular field with a value.

i fill in the value and i get the results i want successfully.

the field, however, is a lookup field (i select with a combo box the value from a query when i open the table)
and it would save me time if i could salect the value in the update query too instead of typing it.

i hope i 've stated the problem more clearly now!


 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:04 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.