Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

convert a date to a string

Status
Not open for further replies.

dead7

Programmer
Jun 8, 2004
79
US
I have a date field that need to be converted to a string in a public function. Does anyone know how to do that,
[DATE]. I am getting a data type mismatch. or can I reference a field from a form in a public function like
dim forms!formname!fieldname as string, probably not?
 
Why not simply use the Format function ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Dead7,

Maybe you could give us a reason behind your request, or more detail. You can use the activecontrol property to access the current control from a public function when you call that function.



Stix 42
Long Live Rock and Roll
Pop is for drinking
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top