C
Charlie
I have two combo boxes, second rowsouce based on choice from first combo box
in an Access ADP
First combo box
tblStatus
StatusID, int
Status, varchar
Second combo box
tblStatusReason
StatusReasonID, int
StatusReason, varchar
StatusID, int
Here is the code on the afterupdate event of the first combo box
Me.cboStatusReason.RowSource = "SELECT
[tblStatusReason].[StatusReasonID], [tblStatusReason].[StatusID],
[tblStatusReason].[StatusReason]" & _
" & FROM [tblStatusReason] FROM" & _
" tblStatusReason WHERE StatusID = " & Me.cboStatus & _
" ORDER BY StatusReason"
Me.cboStatusReason = Me.cboStatusReason.ItemData(0)
What am I doing wrong?????
in an Access ADP
First combo box
tblStatus
StatusID, int
Status, varchar
Second combo box
tblStatusReason
StatusReasonID, int
StatusReason, varchar
StatusID, int
Here is the code on the afterupdate event of the first combo box
Me.cboStatusReason.RowSource = "SELECT
[tblStatusReason].[StatusReasonID], [tblStatusReason].[StatusID],
[tblStatusReason].[StatusReason]" & _
" & FROM [tblStatusReason] FROM" & _
" tblStatusReason WHERE StatusID = " & Me.cboStatus & _
" ORDER BY StatusReason"
Me.cboStatusReason = Me.cboStatusReason.ItemData(0)
What am I doing wrong?????