Adding to a Report

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

I have a table tbOtherInfo that is in cmdOwnerInfo
I want to add what is in tbOtherInfo to my report, I do have other table
information that is coping over to this report from other tables in
cmdOwnerInfo
Thanks in advance.........Bob Vance
 
On my form I select a name then on the report his name appears with his
address that is in another table, but i have another table that I want to
show that gives his first name which is in table tbOtherInfo........Thanks
bob
 
This is the code that goes with printing the report that I want to add
another table info into:

Private Sub Report_Open(Cancel As Integer)
Select Case Report.OpenArgs
Case "PrintAll"
'Report.RecordSource = "SELECT OwnerID, OwnerName,OwnerAddress,status,
NewsLetter " _
& " FROM tblOwnerInfo WHERE status like 'Active*' And NewsLetter " _
& " like 'Active*';"
'Report.RecordSource = "SELECT OwnerID, OwnerName, status, NewsLetter,"
_
& " OwnerAddress FROM tblOwnerInfo WHERE status like 'Active*' " _
& " And NewsLetter like 'Active*';"

'26/06/2005 Mohan only newsletter is active
Report.RecordSource = "SELECT OwnerID, OwnerName, status, NewsLetter," _
& " OwnerAddress FROM tblOwnerInfo WHERE NewsLetter like 'Active*';"
Case "PrintOne"
'tbOwnAddress.ControlSource =
[Forms]![frmActiveOwnerAddress]![lbOwnerAddress]
'Report.RecordSource = "SELECT OwnerID, OwnerName,OwnerAddress, status,
NewsLetter " _
& " FROM tblOwnerInfo WHERE status like 'Active*' And NewsLetter " _
& " like 'Active*' and OwnerID = " &
[Forms]![frmActiveOwnerAddress]![lbOwnerAddress] & ";"

'26/06/2005 Mohan only newsletter is active

Report.RecordSource = "SELECT OwnerID, OwnerName,OwnerAddress, status,
NewsLetter " _
& " FROM tblOwnerInfo where NewsLetter like 'Active*' and OwnerID = " &
[Forms]![frmActiveOwnerAddress]![lbOwnerAddress] & ";"
End Select
End Sub
 

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

Similar Threads


Back
Top