M
Maggic
Hi again ... I'm mad at myself because I should be able to solve this myself
<sigh>
I have a date field on an input form called "DateEntered" defined as
date/time. What I want to do is save this date on one record, and be able
to use it again on later records as I see fit .. so you could have one
record with "DateEntered = 05/04/04" & say 10 records later want to plug the
field with a date entered earlier say "05/01/04". Now rather than re-key
the date I want to be able to automatically fill the field with "05/01/04"
and so on as records are entered ..
I defined a variable called "svdate" in the Global code module .. in the
general declarations area as "Public svdate as date"
I made a "date" command button with two event procedures ..
1. One for a single click of the mouse which has the following code:
"svdate = DateEntered" to load the date from the DateEntered field into the
save date field
2. The other for a double click of the mouse which has the following code:
"DateEntered" = svdate" to load the DateEntered field from the save date
field some records later.
I click the command button when I know I have a date that I will use later,
unfortunately nothing happens when I double click the button later to
re-load the date.
I changed the single click event procedure to load a date constant say
"5/1/4 "into the save date field "svdate" and when I double click the
command button it works i.e. I get "5/1/4" loaded into DateEntered.
I am obviously not doing something right, but I can't see it ... any help on
this would of course be much appreciated.
Maggic
ps apologies if I haven't used all the right terminology
<sigh>
I have a date field on an input form called "DateEntered" defined as
date/time. What I want to do is save this date on one record, and be able
to use it again on later records as I see fit .. so you could have one
record with "DateEntered = 05/04/04" & say 10 records later want to plug the
field with a date entered earlier say "05/01/04". Now rather than re-key
the date I want to be able to automatically fill the field with "05/01/04"
and so on as records are entered ..
I defined a variable called "svdate" in the Global code module .. in the
general declarations area as "Public svdate as date"
I made a "date" command button with two event procedures ..
1. One for a single click of the mouse which has the following code:
"svdate = DateEntered" to load the date from the DateEntered field into the
save date field
2. The other for a double click of the mouse which has the following code:
"DateEntered" = svdate" to load the DateEntered field from the save date
field some records later.
I click the command button when I know I have a date that I will use later,
unfortunately nothing happens when I double click the button later to
re-load the date.
I changed the single click event procedure to load a date constant say
"5/1/4 "into the save date field "svdate" and when I double click the
command button it works i.e. I get "5/1/4" loaded into DateEntered.
I am obviously not doing something right, but I can't see it ... any help on
this would of course be much appreciated.
Maggic
ps apologies if I haven't used all the right terminology