G
Guest
Here is what i am trying to do.
I have Two combo boxes, cboPos and cboSec. In my form, i want cboSec to be
hidden, except for when the values "A Watch" "B Watch" or "C Watch" is chosen
from cboSec. Here is what i currently have:
cboSec Row Source:
SELECT Sections.[Section ID], Sections.Section FROM Sections;
cboPos Row Source:
SELECT Positionsbysection.Section, Positionsbysection.Position FROM
Positionsbysection;
cboSec AfterUpdate:
Private Sub CboSec_AfterUpdate(Cancel As Integer)
Select Case Me!CboSec
Case "A Watch", "B Watch", "C Watch" ' Or the code
that represents A, B, or C
With Me!CboPos
.Enabled = True
.Visible = True
End With
Me!CboPos.RowSource = "Select (Section, Position) FROM
PositionsBySection ORDER BY Position;"
Case Else
End Select
Me!CboPos.Requery
End Sub
I am currently receiving this error when i try to select something form
cboSec:
The Expression After Update you entered as the event property setting
produced the following error: Procedure declaration does not match the
description of event or procedure having the same name.
Please help me figure this out!!!
I have Two combo boxes, cboPos and cboSec. In my form, i want cboSec to be
hidden, except for when the values "A Watch" "B Watch" or "C Watch" is chosen
from cboSec. Here is what i currently have:
cboSec Row Source:
SELECT Sections.[Section ID], Sections.Section FROM Sections;
cboPos Row Source:
SELECT Positionsbysection.Section, Positionsbysection.Position FROM
Positionsbysection;
cboSec AfterUpdate:
Private Sub CboSec_AfterUpdate(Cancel As Integer)
Select Case Me!CboSec
Case "A Watch", "B Watch", "C Watch" ' Or the code
that represents A, B, or C
With Me!CboPos
.Enabled = True
.Visible = True
End With
Me!CboPos.RowSource = "Select (Section, Position) FROM
PositionsBySection ORDER BY Position;"
Case Else
End Select
Me!CboPos.Requery
End Sub
I am currently receiving this error when i try to select something form
cboSec:
The Expression After Update you entered as the event property setting
produced the following error: Procedure declaration does not match the
description of event or procedure having the same name.
Please help me figure this out!!!