Hi
I wanted to create a input/pop-uo form (frmSearchForm) that would open when I click on a button from the switchboard form.
This formSearchForm would give me the opportunity to enter a 3 digit ParticipantID and a button that I could click to "search/filter" another form called frmAthensQuestionnaire.
When I clicked search, I would like to have some code to check whether this is valid or not (i.e. whether this ParticipantID exists or not). If not valid it would return a message "NO records found". If valid, open my form frmAthensQuestionnaire with this number passed across as a filter/ WhereCondition.
Initially I had a simple comobo box at the top of the form that would list all the participant ID's and would filter the form which I selected a record but one of the research assistants is duimb as ... and would keep forgetting to use the pull down menu and would tr to enter data. Then I tried to run the form from a query so when I clicked on the button on the switchboard form it would query which ID I would look for and then open it at that record, however the form would open at "000" if I entered a non-sense value or didnt enter anyy value so...
here I am trying to write code for this and I have no idea. Can someone please help me?
I wanted to create a input/pop-uo form (frmSearchForm) that would open when I click on a button from the switchboard form.
This formSearchForm would give me the opportunity to enter a 3 digit ParticipantID and a button that I could click to "search/filter" another form called frmAthensQuestionnaire.
When I clicked search, I would like to have some code to check whether this is valid or not (i.e. whether this ParticipantID exists or not). If not valid it would return a message "NO records found". If valid, open my form frmAthensQuestionnaire with this number passed across as a filter/ WhereCondition.
Initially I had a simple comobo box at the top of the form that would list all the participant ID's and would filter the form which I selected a record but one of the research assistants is duimb as ... and would keep forgetting to use the pull down menu and would tr to enter data. Then I tried to run the form from a query so when I clicked on the button on the switchboard form it would query which ID I would look for and then open it at that record, however the form would open at "000" if I entered a non-sense value or didnt enter anyy value so...
here I am trying to write code for this and I have no idea. Can someone please help me?