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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update Query that limits number of records updated

Status
Not open for further replies.

mrtroy

Technical User
Jan 28, 2003
23
US
Using Access and need to limit the number of records updated to 1000....the "limit" function appears to not be acceptable to access....how can I do this? thanks in advance!
 
in the query, right click on the whindow where the tables are shown and in the "top" field enter 1000.
 
Top" does not appear as an option for update queries.
 
Fool around with something like
Code:
UPDATE myTable SET Field1 = 'SomeValue'

Where PrimaryKey IN 
      (Select TOP 1000 PrimaryKey From myTable Order By PrimaryKey)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top