Hello:
I am trying to do a Dlookup expression but it is not working. Basically I have 3 cascading combo box, with the first that has the following code set in the afterupdate event:
[code=vb]
'When the Division is selected, the appropriate Working Region list will
'display in the drop down list of CboWrkReg
With Me![cboWrkReg]
If IsNull(Me!cboDi vision) Then
.RowSource = ""
Else
.RowSource = "SELECT DISTINCT [WrkRegID] " & _
"FROM TblJntALL " & _
"WHERE [DivisionID]=" & Me!cboDivision
End If
Call .Requery
End With
End Sub
[/code]
This works but it is showing the WrkRegID (Num) instead of the WrkRegionName (Text). My table " TblJntALL " is joining my many to many relationships between Division Name and Working Region Name.
How would I get it to display the WrkRegionName if the WrkRegionName is ONLY in my table “tblWrkReg”???
Any help would be great.
Thanks,
Keith.
I am trying to do a Dlookup expression but it is not working. Basically I have 3 cascading combo box, with the first that has the following code set in the afterupdate event:
[code=vb]
'When the Division is selected, the appropriate Working Region list will
'display in the drop down list of CboWrkReg
With Me![cboWrkReg]
If IsNull(Me!cboDi vision) Then
.RowSource = ""
Else
.RowSource = "SELECT DISTINCT [WrkRegID] " & _
"FROM TblJntALL " & _
"WHERE [DivisionID]=" & Me!cboDivision
End If
Call .Requery
End With
End Sub
[/code]
This works but it is showing the WrkRegID (Num) instead of the WrkRegionName (Text). My table " TblJntALL " is joining my many to many relationships between Division Name and Working Region Name.
How would I get it to display the WrkRegionName if the WrkRegionName is ONLY in my table “tblWrkReg”???
Any help would be great.
Thanks,
Keith.
Comment