R
Richard Harison
Hello! I need help!
I have written an extensive db and a popup form involves the date function. I
wrote a VB routine that automatically puts the 1st of the present month into one
text box and the last day of the present month in a second. Here is the key
line:
MonthEnd = DatePart("m", BeginningDate) & "/" & LastDay & "/" & DatePart("yyyy",
Date)
(LastDay is derived from an algorithm which returns the correct # of days in a
given month)
I am using Access 2002. When I imported the db to another 2002 computer the
popup form displayed a #NAME error. I found that the problem lay in a VB
library which wasn't active (DAO 3.6 as I recall). I added that library to
references and it worked fine -- on 2002 machines!
Problem now is it will not work in Access 2003. Yet when I look in references
it shows the DAO 3.6 checked.I tried converting the db to 2003, but the menu
says "2002-2003" which says to me that no conversion is necessary.
Is it possible that the Date function is in another library in 2003?
If not, what else could it be?
I have written an extensive db and a popup form involves the date function. I
wrote a VB routine that automatically puts the 1st of the present month into one
text box and the last day of the present month in a second. Here is the key
line:
MonthEnd = DatePart("m", BeginningDate) & "/" & LastDay & "/" & DatePart("yyyy",
Date)
(LastDay is derived from an algorithm which returns the correct # of days in a
given month)
I am using Access 2002. When I imported the db to another 2002 computer the
popup form displayed a #NAME error. I found that the problem lay in a VB
library which wasn't active (DAO 3.6 as I recall). I added that library to
references and it worked fine -- on 2002 machines!
Problem now is it will not work in Access 2003. Yet when I look in references
it shows the DAO 3.6 checked.I tried converting the db to 2003, but the menu
says "2002-2003" which says to me that no conversion is necessary.
Is it possible that the Date function is in another library in 2003?
If not, what else could it be?