klynch0803
Registered User.
- Local time
- Today, 17:21
- Joined
- Jan 25, 2008
- Messages
- 102
Good Afternoon all,
This is very complex and a little out of my ability at the time. Can someone help me out with the code or maybe create the form for me? I have attached the proper pieces of the database to work with.
Also this database is much more complex than this as it displays picture of Member, does Inventory, keeps track of Sales Income and Payouts etc and I will be happy to upload it when it is complete to this thread for other peoples use and learning tool as well in about 2 weeks when it is complete.
I'm using the following tables with appropriate fields:
MemberList
ApplicationDate
Member#
Birthdate
tdatEntryList
DLNum
EntryTime
GuestofMem
ValidAllowEntry
What I want is a form that will have a TxtField For "Scan ID" where someone would scan there Drivers Liscense for example and it would search the table MemberList Field Member# to see if it exists. If it does then it would insert into table tdatEntryList the Drivers License number scanned into table field DLNUM and the time into ENTRYTIME which is set in the table for its DEFAULT VALUE Now() and also add check mark to ValidAllowEntry.
If it doesn't Exist it would Show a (Yes/No) Dialog "Not A Valid Member! With a Member?".
If No is selected it would Insert the record and <B>not have the Checkbox selected in the tabletdatEntryList "ValidAllowEntry</B>.
If yes is selected it would then add a txtfield to the form (Previously HIdden) for "Guest Of Member?". When the Guest Of Drivers Liscense is scanned then it would then check to see if that is a valid Member and if it is then insert the "Scan ID" text field data into DLNum, current time into field ENTRYTIME and the "Guest Of" into the "GuestOfMem" in the table tdatEntryList.
If it is not a valid Member then it would say not a valid Member and insert into the table and <B>not have the Checkbox selected in the tabletdatEntryList "ValidAllowEntry</B>.
NOW in addition I need 2 other Criteria's...
One is it to take the Birthdate from table MemberList of the Valid Member and compare it to todays Short Date and if they are over 21 it would Show there age beside the Drivers Liscense number and if they are under 21 but over 18 it would show an Orange Display of there Age and if Under 18 then it would Show a REd Display of there Age and add the Record but <B>not have the Checkbox selected in the tabletdatEntryList "ValidAllowEntry</B>.
Second is it to also compare the ApplicationDate and RenewedDate in table MemberList and if one is less than 12 months from the next upcoming June 1. If it is within the 12 months it would continue to add the record If not within the 12 Months then it would Display Membership Needs to Be renewed Today and continue as normal.
This is very complex and a little out of my ability at the time. Can someone help me out with the code or maybe create the form for me? I have attached the proper pieces of the database to work with.
Also this database is much more complex than this as it displays picture of Member, does Inventory, keeps track of Sales Income and Payouts etc and I will be happy to upload it when it is complete to this thread for other peoples use and learning tool as well in about 2 weeks when it is complete.
I'm using the following tables with appropriate fields:
MemberList
ApplicationDate
Member#
Birthdate
tdatEntryList
DLNum
EntryTime
GuestofMem
ValidAllowEntry
What I want is a form that will have a TxtField For "Scan ID" where someone would scan there Drivers Liscense for example and it would search the table MemberList Field Member# to see if it exists. If it does then it would insert into table tdatEntryList the Drivers License number scanned into table field DLNUM and the time into ENTRYTIME which is set in the table for its DEFAULT VALUE Now() and also add check mark to ValidAllowEntry.
If it doesn't Exist it would Show a (Yes/No) Dialog "Not A Valid Member! With a Member?".
If No is selected it would Insert the record and <B>not have the Checkbox selected in the tabletdatEntryList "ValidAllowEntry</B>.
If yes is selected it would then add a txtfield to the form (Previously HIdden) for "Guest Of Member?". When the Guest Of Drivers Liscense is scanned then it would then check to see if that is a valid Member and if it is then insert the "Scan ID" text field data into DLNum, current time into field ENTRYTIME and the "Guest Of" into the "GuestOfMem" in the table tdatEntryList.
If it is not a valid Member then it would say not a valid Member and insert into the table and <B>not have the Checkbox selected in the tabletdatEntryList "ValidAllowEntry</B>.
NOW in addition I need 2 other Criteria's...
One is it to take the Birthdate from table MemberList of the Valid Member and compare it to todays Short Date and if they are over 21 it would Show there age beside the Drivers Liscense number and if they are under 21 but over 18 it would show an Orange Display of there Age and if Under 18 then it would Show a REd Display of there Age and add the Record but <B>not have the Checkbox selected in the tabletdatEntryList "ValidAllowEntry</B>.
Second is it to also compare the ApplicationDate and RenewedDate in table MemberList and if one is less than 12 months from the next upcoming June 1. If it is within the 12 months it would continue to add the record If not within the 12 Months then it would Display Membership Needs to Be renewed Today and continue as normal.