A
Adam
Hi All,
I'm attempting some VB coding on my Access Database, its going slow so
far.
I have a field on my form called 'Text17' (I know, it will be renamed)
and I want it to lookup the values I select from the combobox called
'MonthSelect'.
I want it to lookup those values in the table 'Working Days in Month
tbl' by the Month field and pull out the value in the field 'NoOfDays'.
I've made the below code which is on the combobox:
=============
Private Sub MonthSelect_Change()
Me.Text17.Value = DLookup("NoOfDays", "Working Days in Month tbl",
"Month=" & Me.MonthSelect.Value)
End Sub
=============
Its not working
Could anyone explain why please?
Regards,
Adam
I'm attempting some VB coding on my Access Database, its going slow so
far.
I have a field on my form called 'Text17' (I know, it will be renamed)
and I want it to lookup the values I select from the combobox called
'MonthSelect'.
I want it to lookup those values in the table 'Working Days in Month
tbl' by the Month field and pull out the value in the field 'NoOfDays'.
I've made the below code which is on the combobox:
=============
Private Sub MonthSelect_Change()
Me.Text17.Value = DLookup("NoOfDays", "Working Days in Month tbl",
"Month=" & Me.MonthSelect.Value)
End Sub
=============
Its not working

Could anyone explain why please?
Regards,
Adam