Hi Victor,
Did you try to use Format function to convert datetime variable to a string variable?
example:
Open "EWSD" & Format$(now,"MMMM dd, yyyy") & ".log" for output as ifilenum
HTH, Igor
>Hi,
>
> I'm creating a file like this format: c:\ewsd\data\July 7,2000.log
>
>
> In my load event of my form:
> dim cdayt as string
> cdayt= now
>
> In my event:
>
> ifilenum=freefile
> Open "EWSD" & cdayt & ".log" for output as ifilenum
> write #iflenum, cBuffer
> close #ifilenum
>
> I can't concatenate the current date to other strings expression.
> If I remove the variable cdayt , it works for me.
>
> any idea.
Igor Gelin
Database Developer