Re: Updating the first row which is null
- From: "tina" <nospam@xxxxxxxxxxx>
- Date: Sat, 08 Apr 2006 15:43:37 GMT
you can use the TOP predicate in a query (and presumably in a subquery,
though i've never tried it), if you also include an ORDER BY clause. the
records have to be in a specified order, so that Access can figure out which
record is the TOP 1.
hth
<recif20002002@xxxxxxxx> wrote in message
news:1144508902.675910.60370@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello
I am trying to update table1 and set a new value with a condition
selecting only the results for the element with the specified ID and
the first one with the Date field null.
The query executes but it doesn t not update the informations. I ve
tried using TOP 1 and spent hours on this query but i can t get it to
work.
UPDATE table1 SET table1.Name = newName
WHERE table1.Date = (SELECT First(table1.Date) FROM table1 WHERE
table1.Date = Null And table1.ID = specifiedID);;
thank you for your help
Updating the first row which is null
.
- References:
- Updating the first row which is null
- From: recif20002002@xxxxxxxx
- Updating the first row which is null
- Prev by Date: Re: Philly-To-London via Intranet?
- Next by Date: Re: Updating the first row which is null
- Previous by thread: Updating the first row which is null
- Next by thread: Re: Updating the first row which is null
- Index(es):
Relevant Pages
|