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

Extracting by year

Status
Not open for further replies.

NWTrust

Technical User
Apr 2, 2002
68
GB
This is an Access 2003 problem. I have a table - Table1 - with a field 'Date' containing dates in medium date format. I want to be able to create a second table from Table1 containing only those records matching a year only entered in a separate form. Is this possible? I would appreciate any help you can give me.
NWTrust
 
Code:
Select * INTO SomeNewTable
From Table1
Where Year([Date]) = [Forms]![FormName]![TxtYear]
 
Thanks, Golom. Problem solved!
NWTrust
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top