M
Mark S
Have databases that have been converted from previous versions,
currently running 2003. Unable to enter the Date function in one of
the form events (or any sub). It will take the date statement but not
the function.
Further, I am trying to populate a bound control with a date.
Currently trying to use the date function but may need to use other
dates (not really the issue yet). But, it will not let me populate
the date from code. If I set the Default Value to = Date(), it works
fine, but can't do it from code. Tried all the following
combinations, with error results shown:
Me.txtStartDateTime = DateValue(date) + TimeValue(Time)
Invalid use of Null
Me.txtStartDateTime = Now
You can’t assign a value to this object
Me.txtStartDateTime = date
You can’t assign a value to this object
I have tried creating a new database and I am able to do this without
any problem and the Date function works fine.
Me.txtStartDateTime = Date()
Worked fine in new database.
I have tried everything I have read in other posts about correcting
References, including removing all unnecessary references and adding
then removing an extra reference after restarting to rebuild the
references.
I have looked through every property I can think of to compare the
converted database to the newly created one. I have started with a
blank database and imported everything to it.
Any suggestions?
BTW, thanks to everyone who has provided help in the past. Whether it
has been answering one of my questions directly or by helping someone
else here, also helping me. THANKS.
Mark
currently running 2003. Unable to enter the Date function in one of
the form events (or any sub). It will take the date statement but not
the function.
Further, I am trying to populate a bound control with a date.
Currently trying to use the date function but may need to use other
dates (not really the issue yet). But, it will not let me populate
the date from code. If I set the Default Value to = Date(), it works
fine, but can't do it from code. Tried all the following
combinations, with error results shown:
Me.txtStartDateTime = DateValue(date) + TimeValue(Time)
Invalid use of Null
Me.txtStartDateTime = Now
You can’t assign a value to this object
Me.txtStartDateTime = date
You can’t assign a value to this object
I have tried creating a new database and I am able to do this without
any problem and the Date function works fine.
Me.txtStartDateTime = Date()
Worked fine in new database.
I have tried everything I have read in other posts about correcting
References, including removing all unnecessary references and adding
then removing an extra reference after restarting to rebuild the
references.
I have looked through every property I can think of to compare the
converted database to the newly created one. I have started with a
blank database and imported everything to it.
Any suggestions?
BTW, thanks to everyone who has provided help in the past. Whether it
has been answering one of my questions directly or by helping someone
else here, also helping me. THANKS.
Mark