Print the location of the batadase on the report

K

Karen

Could anyone help me put the path and the data base name
on the report. I am working with Access 2000.

Thanks
 
S

Sandra Daigle

Add an unbound textbox to the report and then using one of the format event
for the appropriate section assign the value like this:

Private Sub ReportHeader_Format(Cancel As Integer, FormatCount As Integer)
Me.Text13 = CurrentDb().Name
End Sub
 
K

Karen

I can only put an expression in the data field of an
unbound text box. I am working with Access 2000. Does it
ahve anything to do with it?
-----Original Message-----
Add an unbound textbox to the report and then using one of the format event
for the appropriate section assign the value like this:

Private Sub ReportHeader_Format(Cancel As Integer, FormatCount As Integer)
Me.Text13 = CurrentDb().Name
End Sub

--
Sandra Daigle [Microsoft Access MVP]
Please post all replies to the newsgroup.

Could anyone help me put the path and the data base name
on the report. I am working with Access 2000.

Thanks


.
 
S

Sandra Daigle

Hi Karen,

I'm not sure what you mean. The code I gave you is VBA that would go into an
Event Procedure.

Are you saying that you can't use VBA?

--
Sandra Daigle [Microsoft Access MVP]
Please post all replies to the newsgroup.

I can only put an expression in the data field of an
unbound text box. I am working with Access 2000. Does it
ahve anything to do with it?
-----Original Message-----
Add an unbound textbox to the report and then using one of the
format event for the appropriate section assign the value like this:

Private Sub ReportHeader_Format(Cancel As Integer, FormatCount As
Integer) Me.Text13 = CurrentDb().Name
End Sub

--
Sandra Daigle [Microsoft Access MVP]
Please post all replies to the newsgroup.

Could anyone help me put the path and the data base name
on the report. I am working with Access 2000.

Thanks


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top