Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Database Design / May 2005

Tip: Looking for answers? Try searching our database.

REPLACING BLANK FIELDS WITH DATA BASED ON ANOTHER FIELD

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DONNAK - 05 May 2005 01:41 GMT
I added a field for an actual year - the old data is based on the yea
data as 98 99 00 01, etc.  I was hoping I could find out how to fil
in this new blank field (lots of records) with the actual year dat
after I do a filter
Jim C. - 05 May 2005 17:14 GMT
Hi,

Use an update query.  It should look something like this -

Update table
Set table.NewField = OldField + IIF(OldField > 10,1900,2000)

The 10 in the above can be whatever cutoff you want to use to split 1900 vs
2000 years.

Jim

> I added a field for an actual year - the old data is based on the year
> data as 98 99 00 01, etc.  I was hoping I could find out how to fill
> in this new blank field (lots of records) with the actual year data
> after I do a filter.
John Vinson - 07 May 2005 00:48 GMT
>I added a field for an actual year - the old data is based on the year
>data as 98 99 00 01, etc.  I was hoping I could find out how to fill
>in this new blank field (lots of records) with the actual year data
>after I do a filter.

Could you give us a little help here? Bear in mind: we do not know the
structure of your tables, what the old data look like, how this new
field should be filled in, where you're getting the actual year
data...

Please describe the structure of your table. I'm sure an Update query
will do the trick but can't begin to suggest how to create it.

                 John W. Vinson[MVP]    
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.