Hi,
I created a database to eventually replace the paper forms. So each record in the table (tbldata) represent a paper form completed by a USER.
Each record in tbldata is represented by a unique number for example 11-0001, 11-0002, etc where the first digit represent the year and the other 4 digits represent sequential numbering.
Since I have hundred of records, I wanted to make it easy for the user to find the appropriate record to print it out (I created a Report) to sign/date.
So currently I have a form (frmRecordSearch) which has a Subform (frmRecordSearchSubform) linked to a Query (qryRecordSearch) which is pulling info from tbldata
The USER usually opens frmRecordSearch which lists all the records whether Open or Close. Once they find what they are looking for they click on it (I have a vb code on double click) and it will open the form the USER will make the chnages and then print it to sign/date.
So to minimize the search for the USER I wanted to be able to exclude the closed records.
This what I did so far.
I added to "tbldata" a field (called status - data type: "number", can be 1 or 2). On the form (frmdata) I added a FRAME with two (2) checkboxes Open the defualt value and is invisible (Option Value=1) and Closed (Option Value=2) which is visible. So if the box Closed is checked then the record is closed (used AllowEdits.Enable).
On "frmRecordSearch" I added a Checkbox.
So here where I am stuck in the query (qryRecordSearch). I need to put something in the query. When the USER checks the box on "frmRecordSearch", then all closed records will disappear and not be shown.
Currently I do it manual, I open qryRecordSearch in design format and I add in the Criteria field of "status" - <>2.
Hopefully i am making sense.
Thanks in advance
RB
I created a database to eventually replace the paper forms. So each record in the table (tbldata) represent a paper form completed by a USER.
Each record in tbldata is represented by a unique number for example 11-0001, 11-0002, etc where the first digit represent the year and the other 4 digits represent sequential numbering.
Since I have hundred of records, I wanted to make it easy for the user to find the appropriate record to print it out (I created a Report) to sign/date.
So currently I have a form (frmRecordSearch) which has a Subform (frmRecordSearchSubform) linked to a Query (qryRecordSearch) which is pulling info from tbldata
The USER usually opens frmRecordSearch which lists all the records whether Open or Close. Once they find what they are looking for they click on it (I have a vb code on double click) and it will open the form the USER will make the chnages and then print it to sign/date.
So to minimize the search for the USER I wanted to be able to exclude the closed records.
This what I did so far.
I added to "tbldata" a field (called status - data type: "number", can be 1 or 2). On the form (frmdata) I added a FRAME with two (2) checkboxes Open the defualt value and is invisible (Option Value=1) and Closed (Option Value=2) which is visible. So if the box Closed is checked then the record is closed (used AllowEdits.Enable).
On "frmRecordSearch" I added a Checkbox.
So here where I am stuck in the query (qryRecordSearch). I need to put something in the query. When the USER checks the box on "frmRecordSearch", then all closed records will disappear and not be shown.
Currently I do it manual, I open qryRecordSearch in design format and I add in the Criteria field of "status" - <>2.
Hopefully i am making sense.
Thanks in advance
RB