Hi All,
I am having a problem with a form that I have which has a query as its recordsource.
The problem: I have a search form (frmSearch) that lists records in a list box on the form. The unique ID for the records in the listbox is the PositionID. I also have another form (frmTracking) that has a query as its recordsource. The query uses this code in the queries Criteria to filter the record returned to that of the one selected in the frmSearch listbox: Forms!frmSearch!List0
SO basically, the user chooses a record in the frmSearch listbox, double-clicks that record which then (on the double-click event) opens frmTracking with the correct record. Simple enough... However...
THe problem I am running into is that not all of the PositionID's displayed in the listbox will already have a tracking record. The ones that do not I want to have the form open to a new record and transfer the PositionID over to the frmTracking. Currently, the form opens blank (no textboxes or nothing) because the WHERE criteria is null and because there was no positionID found in the tracking table so there is nothing to display.
Does anyone know a way to get the form to recognize there is not record established in the tracking table and create a new one for the Position ID selected in the listbox?
Any/All help greatly appreciated!
Thanks-Kevin
I am having a problem with a form that I have which has a query as its recordsource.
The problem: I have a search form (frmSearch) that lists records in a list box on the form. The unique ID for the records in the listbox is the PositionID. I also have another form (frmTracking) that has a query as its recordsource. The query uses this code in the queries Criteria to filter the record returned to that of the one selected in the frmSearch listbox: Forms!frmSearch!List0
SO basically, the user chooses a record in the frmSearch listbox, double-clicks that record which then (on the double-click event) opens frmTracking with the correct record. Simple enough... However...
THe problem I am running into is that not all of the PositionID's displayed in the listbox will already have a tracking record. The ones that do not I want to have the form open to a new record and transfer the PositionID over to the frmTracking. Currently, the form opens blank (no textboxes or nothing) because the WHERE criteria is null and because there was no positionID found in the tracking table so there is nothing to display.
Does anyone know a way to get the form to recognize there is not record established in the tracking table and create a new one for the Position ID selected in the listbox?
Any/All help greatly appreciated!
Thanks-Kevin