Re: Table with only the last record
- From: "Kaj Julius" <julius.x@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 26 Feb 2006 19:06:46 +0100
"solar" <sprimerov@xxxxxxxxx> skrev i en meddelelse
news:1140971929.731838.23880@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
In addition to my question I guess that i should build a make table
query that contains only the last order.To this end i have tried to
build the following function:
Public Function Alan()
Dim SQL As String
SQL = "SELECT * INTO orders1 FROM orders WHERE orders1.orderid =
DMax(orderid,orders)"
CurrentDb.Execute SQL
End Function
However i get the error "too few parameters".Where am i wrong and i can
i do in that way ?
How about:
SELECT * INTO orders1 FROM orders WHERE orderid = (SELECT MAX(orderid) FROM
orders)
.
- Follow-Ups:
- Re: Table with only the last record
- From: Mark
- Re: Table with only the last record
- References:
- Table with only the last record
- From: solar
- Re: Table with only the last record
- From: solar
- Table with only the last record
- Prev by Date: Re: Table with only the last record
- Next by Date: Re: deleting records
- Previous by thread: Re: Table with only the last record
- Next by thread: Re: Table with only the last record
- Index(es):
Relevant Pages
|
Loading