G
Guest
Is it possible to get the View constant within the Report?
As I know the acView constant is only an argument to Docmd.openreports
I want to insert a timestamp info if the user prints, but not if he uses the
Preview mode.
The code should look like this: (within the report)
sub details_print(...)
if View=acNormal then
set rs=currentdb.openrecordset("select * from Tabelle1 where ID="+Me.id)
rs("timestamp")=now
end if
end sub
I have found a lot of questions in the internet but insufficient answers.
Thanks for your help in advance,
Harry
As I know the acView constant is only an argument to Docmd.openreports
I want to insert a timestamp info if the user prints, but not if he uses the
Preview mode.
The code should look like this: (within the report)
sub details_print(...)
if View=acNormal then
set rs=currentdb.openrecordset("select * from Tabelle1 where ID="+Me.id)
rs("timestamp")=now
end if
end sub
I have found a lot of questions in the internet but insufficient answers.
Thanks for your help in advance,
Harry