update query problem

  • Thread starter Thread starter SJJ via AccessMonster.com
  • Start date Start date
S

SJJ via AccessMonster.com

i have a table called tblBookings, i have 50 records, field ID is the primary
key

i have a field called Date. i used a query to pick up some dates which wanted
to update to this table on the Date field. how can i update to certain fields.


for example i need to update these dates to the records which are like "*GH*"
(this is from the Primary key fied) on them. not for all the 50 records. how
can i do that please.

any ideas

thanks in advance
 
Hello SJJ.

SJJ said:
i have a table called tblBookings, i have 50 records, field ID is the
primary key

i have a field called Date. i used a query to pick up some dates which
wanted to update to this table on the Date field. how can i update to
certain fields.

for example i need to update these dates to the records which are
like "*GH*" (this is from the Primary key fied) on them.
not for all the 50 records. how can i do that please.

Create a query that is based on your table.
Add the ID and Date fields to the query.
In the criteria row for the ID field, enter this: Like "*GH*"
In the query menu, select the query type "Update query"
For the Date field, in the update row, enter the desired expression (the
value that is written to the field).
Save the query.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top