A
alex
Hello everyone,
Using Access ’03…
I have a form that contains a calendar (ActiveX Control). In the same
form is a subform linked to a table. I designed this form so that
users could open it, select a date, and enter stats such as counts and
hours.
This works fine, but I want to link the calendar date to the record
(with the same date) on the subform. For example, a user opens the
form, selects a date that does not exist in the table, and a blank
record opens (for data entry). Should the user select a date that
already exists in the table, that record would open on the subform and
the user could then edit it.
I thought about possibly adding VBA code to the calendar’s on click
that takes the calendar’s date and searches the table (form) for that
date…if it exists, pull the record, if not prepare the subform for
data entry.
Any thoughts?
alex
Using Access ’03…
I have a form that contains a calendar (ActiveX Control). In the same
form is a subform linked to a table. I designed this form so that
users could open it, select a date, and enter stats such as counts and
hours.
This works fine, but I want to link the calendar date to the record
(with the same date) on the subform. For example, a user opens the
form, selects a date that does not exist in the table, and a blank
record opens (for data entry). Should the user select a date that
already exists in the table, that record would open on the subform and
the user could then edit it.
I thought about possibly adding VBA code to the calendar’s on click
that takes the calendar’s date and searches the table (form) for that
date…if it exists, pull the record, if not prepare the subform for
data entry.
Any thoughts?
alex