Hello..
I have an access form which is a survey / questionnaire.
It uses VB code for enabling and disabling the data entry boxes.
If you consider B16, B17 and B18 are three fields, then
B17 and B18 are disabled in the form's property sheet.
If B16 is 'Yes' then B17 is enabled for entering data (Yes/No).
If B16 is 'No' or 'Null' B17 is disabled for entering data (Yes/No) and set to Null.
If B17 is 'Yes' then B18 is enabled for entering data ( A Date like 12/11/2011 ), else B18 is disabled and set to Null.
Say I marked B16 = Yes, B17=Yes and entered B18=12/1/2011.
I put the cursor in a 'Study ID' field and do a Ctrl+F, where I enter the 'Study ID' for the record to show up on the form. Everything's fine and this works. The problem is when someone closes the access database and reopens it, and then tries to do the ctrl+F to pull a record he wants to verify/Change.
Say, I reopen the database and want to Mark B17=No. So I do a ctrl+F to search the study ID and the record shows up on Form, it somehow doesnt recognize the record's loaded and I cant change B17 to 'No' cuz its disabled. So B17 is still marked Yes and is disabled for me to change it to 'No'. And of course, B18 has the date in there and its disabled. Note that this is happening only when using the Ctrl+F to show a record. When the form Opens and during the After Update event of the boxes everything's fine.
Can anyone suggest something please?
Thanks..