robcrussiii
Registered User.
- Local time
- Today, 14:48
- Joined
- Mar 1, 2005
- Messages
- 12
Im am having some difficulties with the correct record being called into my form. Attached is a .gif file of my set up. Basically when someone signs out they are listed in the currently out box (using various < > Null statements in a query), and when you click thier name in that box it should populate the right hand side with the information causing them to be in the currently out list. Problem is my code is not bringing in the correct record that caused them to be listed in the box to begin with. If you notice 'Robert' is listed in the currently out, and clicking on his name populated a past item and not the record that caused him to be out. The item causing him to be out is the 2nd table entry on tblsignout because there is no timein (its null) so it shows him in the currently out. Where am I going wrong in my code? This is what I have currently in the afterupdate for the lstOut:
Dim strSearch As String
strSearch = "[EmpID] = " & Me![lstOut]
Me.RecordsetClone.FindFirst strSearch
Me.Bookmark = Me.RecordsetClone.Bookmark
Me.cboEmpName.Locked = True
- Doh, had put the wrong code up... that is the right one
Dim strSearch As String
strSearch = "[EmpID] = " & Me![lstOut]
Me.RecordsetClone.FindFirst strSearch
Me.Bookmark = Me.RecordsetClone.Bookmark
Me.cboEmpName.Locked = True
- Doh, had put the wrong code up... that is the right one
Attachments
Last edited: