Hi All,
I'm still learning Access & VBA, and have come across a piece of functionality I think my users would find useful.
However I'm not sure about how to get it to work...
I have a bound List box in a form which selects the Unique values (dates) from the table
SELECT DISTINCT RF72_HIST.Report_Date FROM RF72_HIST ORDER BY RF72_HIST.Report_Date DESC;.
I have set the default value to be the most recent date
=Max([RF72_HIST]![Report_Date]).
When the form is opened, however, it shows data for all available dates.
I've tried requerying the list box
Private Sub Form_Activate()
DATECHOOSER.Requery
RF72_Subform.Requery 'Form which displays all remaining no-criteria data
End Sub
but I can't set the List Box to exclusively one date until it is clicked on:
Private Sub DATECHOOSER_Click()
PRODUCTCHOOSER.Requery 'Another combo box
RF72_Subform.Requery
End Sub
Can any one help?
The added bit of functionality I wanted to learn, which would prove useful in many other circumstances, was how to use an ActiveX Spinbutton. I don't understand how it works to set a text boxs' value up or down?
All suggestions & advice will be most appreciated,
Rémy
I'm still learning Access & VBA, and have come across a piece of functionality I think my users would find useful.
However I'm not sure about how to get it to work...
I have a bound List box in a form which selects the Unique values (dates) from the table
SELECT DISTINCT RF72_HIST.Report_Date FROM RF72_HIST ORDER BY RF72_HIST.Report_Date DESC;.
I have set the default value to be the most recent date
=Max([RF72_HIST]![Report_Date]).
When the form is opened, however, it shows data for all available dates.
I've tried requerying the list box
Private Sub Form_Activate()
DATECHOOSER.Requery
RF72_Subform.Requery 'Form which displays all remaining no-criteria data
End Sub
but I can't set the List Box to exclusively one date until it is clicked on:
Private Sub DATECHOOSER_Click()
PRODUCTCHOOSER.Requery 'Another combo box
RF72_Subform.Requery
End Sub
Can any one help?
The added bit of functionality I wanted to learn, which would prove useful in many other circumstances, was how to use an ActiveX Spinbutton. I don't understand how it works to set a text boxs' value up or down?
All suggestions & advice will be most appreciated,
Rémy