Howlsta
Vampire Slayer
- Local time
- Today, 08:00
- Joined
- Jul 18, 2001
- Messages
- 180
What's wrong with the sql in my code below? It's something to do with setting the criteria to PG I think. I tried putting the PG bit in "" but that didn't work either. Anyone know why it's not working? It comes up with an input box with text PG above the text box at the moment. I want it to just put PG in cboYear.
Private Sub cboCourse_AfterUpdate()
If Me.CboCourse.Column(1) = "MSc Computing" Or Me.CboCourse.Column(1) _
= "MSc Software Engineering" Then
Me.cboYear.RowSource = "SELECT DISTINCT tblYears.YearIDF, tblYears.NumberYr " _
& "FROM tblYears WHERE (((tblYears.NumberYr) = PG));"
End If
End Sub
[This message has been edited by Howlsta (edited 09-01-2001).]
Private Sub cboCourse_AfterUpdate()
If Me.CboCourse.Column(1) = "MSc Computing" Or Me.CboCourse.Column(1) _
= "MSc Software Engineering" Then
Me.cboYear.RowSource = "SELECT DISTINCT tblYears.YearIDF, tblYears.NumberYr " _
& "FROM tblYears WHERE (((tblYears.NumberYr) = PG));"
End If
End Sub
[This message has been edited by Howlsta (edited 09-01-2001).]