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

User enters a date so the correct Accounting Period is assigned.

Status
Not open for further replies.

graydon123

Technical User
Feb 25, 2004
10
US
I have 2 tables from my database, one an employeeinfo table and another called accountingperiod. The employee table consists of fields "empFirstName, empLastName, empSSN, empHirePeriod." The accountingperiod table consists of the fields and a couple of sample records :
"acctPeriod acctPeriodDateBeg acctPeriodDateEnd "
----------- ----------------- -----------------
200401 01-12-2004 02-22-2004
200402 02-23-2004 04-04-2004

I am looking for a way that a user enters a date and then searches for correct accounting period in which date belongs to.

example: user enters '02-02-2004' in txtDate.text
then txtAcctPeriod.text will populate with '200401'
Once I get the correct AcctPeriod, then I will be able populate the employee's record with the AcctPeriod.

This is almost like a zipcode lookup...A user enters a zipcode and then the correct city&state is displayed.

Thank you for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top