G
Guest
Hello,
I have a form set up to allow users to input data relating to a person's
baptism. This includes recording the date of baptism and the parish. The date
is a text box with date formatting and the parish is a combo box with values
selected from another table. The data is historical and the parish names
change over time. The 'parish' table has three columns that have all names
that are valid for various points in time eg. pre-1988, post-2000 and between
these dates.
I have created an invisible text box that extracts the year of baptism from
the complete date entered. I was somehow hoping that based on this value I
would be able to display only the relevant column in the drop down list of
the combo box. For example if I entered the date of baptism as 31/3/05, my
text box would extract 2005 which would then be able to instruct the combo
box to only show parish names from the post-2000 column of this table (which
in this case is column A).
To me this sounds like it should be easy to do, but I haven't been able to
get very far with this and haven't found a solution on this discussion board
that seems to match the problem.
I tend to use mainly macros and expressions because I've got no experience
in VBA - unless it's spelt out.
Hoping someone can help.
thanks,
I have a form set up to allow users to input data relating to a person's
baptism. This includes recording the date of baptism and the parish. The date
is a text box with date formatting and the parish is a combo box with values
selected from another table. The data is historical and the parish names
change over time. The 'parish' table has three columns that have all names
that are valid for various points in time eg. pre-1988, post-2000 and between
these dates.
I have created an invisible text box that extracts the year of baptism from
the complete date entered. I was somehow hoping that based on this value I
would be able to display only the relevant column in the drop down list of
the combo box. For example if I entered the date of baptism as 31/3/05, my
text box would extract 2005 which would then be able to instruct the combo
box to only show parish names from the post-2000 column of this table (which
in this case is column A).
To me this sounds like it should be easy to do, but I haven't been able to
get very far with this and haven't found a solution on this discussion board
that seems to match the problem.
I tend to use mainly macros and expressions because I've got no experience
in VBA - unless it's spelt out.
Hoping someone can help.
thanks,