My issue is as follows:
Access 2003/WinXP
I have created a task tracking database. On the main form, I have placed two combo boxes. The first (cboContact) lists the user that the task is assigned to.
record source =
Expand|Select|Wrap|Line Numbers
- SELECT Contacts.ID, Contacts.[First Name] FROM Contacts ORDER BY Contacts.[First Name];
Expand|Select|Wrap|Line Numbers
- Private Sub cboContact_AfterUpdate()
- cboTask.Requery
- End Sub
record source =
Expand|Select|Wrap|Line Numbers
- SELECT Issues.ID, Issues.Title, Issues.[Assigned To] FROM Issues WHERE (((Issues.[Assigned To])=FORMS!Issues!cboContact)) ORDER BY Issues.Title;
onGetFocus event =
Expand|Select|Wrap|Line Numbers
- Private Sub cboTask_GotFocus()
- If Len(Trim(Nz(cboContact, "") & "")) = 0 Then
- MsgBox "Please Specify Person Task Assigned To First"
- cboContact.SetFocus
- Else
- cboTask.Requery
- End If
- End Sub
Expand|Select|Wrap|Line Numbers
- Private Sub cboTask_AfterUpdate()
- ' Find the record that matches the control.
- Dim rs As Object
- Set rs = Me.Recordset.Clone
- rs.FindFirst "[Title] = " & Me![cboTask]
- If Not rs.EOF Then Me.Bookmark =
- rs.Bookmark
- End Sub
tblContacts
ID - Autonumber
First Name - Txt ( I have the full name in this field )
tblIssues
ID-Autonumber -PK
Title - Txt
Assigned To - Nbr (This has a one to many relationship from Contacts (ID))
Opened By - Nbr
Opened Date - Date/Time
Status - Txt
Category - Txt
etc, etc ... about 10 other fields
I'm going in circles trying to figure this one out. I may be right on top of it. Most likely not.
Thank you in advance for your reply.