Hi guys,
I have read a very good guide here http://www.fontstuff.com/access/acctut10.htm
I think I fall into scenario 2.
I have tried putting this code into the AFTER UPDATE event of the "parent" combo box:
I am getting error "Data type mismatch in criteria expression". Is there anything wrong with my code or is this an issue stemming from my lookups being generated in SharePoint (this has caused data type problems before)? Thanks!
UPDATE:
I must be doing something wrong, can't even get it to work in mock database using:
I have read a very good guide here http://www.fontstuff.com/access/acctut10.htm
I think I fall into scenario 2.
I have tried putting this code into the AFTER UPDATE event of the "parent" combo box:
Code:
Private Sub Position_AfterUpdate()
On Error Resume Next
Slot1.RowSource = "Select CandidateIdentified.CandidateIdentifiedCandidate " & _
"FROM CandidateIdentified " & _
"WHERE CandidateIdentified.CandidateIdentifiedPosition = '" & Slot1.Value & "' " & _
"ORDER BY CandidateIdentified.CandidateIdentifiedCandidate;"
End Sub
I am getting error "Data type mismatch in criteria expression". Is there anything wrong with my code or is this an issue stemming from my lookups being generated in SharePoint (this has caused data type problems before)? Thanks!
UPDATE:
I must be doing something wrong, can't even get it to work in mock database using:
Code:
Private Sub Position_AfterUpdate()
On Error Resume Next
Candidate.RowSource = "Select tblCandidates.Candidate " & _
"FROM tblCandidates " & _
"WHERE tblCandidates.IdentifiedPosition = '" & Position.Value & "' " & _
"ORDER BY tblCandidates.Candidate;"
End Sub
Last edited: