dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

Date Conversions - ms-access

This is a discussion on Date Conversions - ms-access ; I am new to Access, and I am trying to build a form that tracks requests by month/year. My problem is that we don't use a standard calendar, so I need to do a look up to a secondary table ...


Home > Database Forum > Other Databases > ms-access > Date Conversions

Reply

 

LinkBack Thread Tools Display Modes
  #1  
Old 11-20-2008, 12:10 PM
Database Newbie
 
Join Date: Nov 2008
Posts: 1
kingrexx is on a distinguished road
Default Date Conversions

I am new to Access, and I am trying to build a form that tracks requests by month/year. My problem is that we don't use a standard calendar, so I need to do a look up to a secondary table to check if the request date is in a date range and then populate 2 fields in the table with the alternate Month and Year..

The process flow is something like this:

User enters data for Table1.Request_Date
AfterUpdate Check to see if Table1.Request_Date => Table2.Start_Date And Table1.Request_Date <= Table2.End_Date

If a Match is Found then Update Table1.New_Month with Table2.Month and Table1.New_Year with Table2.Year

If No matches found, then generate an error.

I am stuck on how to start coding this. Any help would be appreciated.
Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 10:38 PM.