|
-
Nov 25th, 2005, 06:10 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Cannot see data on report
Hi guys!!!!
I am here once again because I can't solve the problem for 3 days now.
I can't see the data on the report. I am currently using Crystal Reports 10
and I am using VB6 with SQL Server 2000. There's something wrong with my
code because it works in Crystal reports. Here is the code:
VB Code:
Private Sub Form_Load()
Dim BookingSheet As New CRAXDRT.Application
Dim TransactionReport As New CRAXDRT.Report
Set TransactionReport = BookingSheet.OpenReport("\\mnlbs001\Cargo Suite\Applications\BookingSheet.rpt", 1)
CrystalActiveXReportViewer1.ReportSource = TransactionReport
CrystalActiveXReportViewer1.ViewReport
TransactionReport.RecordSelectionFormula = ""
MsgBox "{Transaction_Table.Transaction_No} = '" & Trim(frmTransactionEntries.txtTransactionNo.Text) & "'"
TransactionReport.RecordSelectionFormula = "{Transaction_Table.Transaction_No} = '" & Trim(frmTransactionEntries.txtTransactionNo.Text) & "'"
Screen.MousePointer = vbHourglass
Screen.MousePointer = vbDefault
End Sub
Private Sub Form_Resize()
CrystalActiveXReportViewer1.Top = 0
CrystalActiveXReportViewer1.Left = 0
CrystalActiveXReportViewer1.Height = ScaleHeight
CrystalActiveXReportViewer1.Width = ScaleWidth
End Sub
Can you guys please help me out.
Rate Me! Rate Me! Rate Me!
Time to fly.
Copyright GraysonSoft Inc. 2007
-
Nov 25th, 2005, 09:49 PM
#2
Thread Starter
Hyperactive Member
Re: Cannot see data on report
Rate Me! Rate Me! Rate Me!
Time to fly.
Copyright GraysonSoft Inc. 2007
-
Nov 28th, 2005, 11:35 PM
#3
Thread Starter
Hyperactive Member
Re: Cannot see data on report
Ok now I am having progress. I just want to ask how can I assign two different passwords on two different users that will connect to one table. For example:
VB Code:
TransactionReport.Database.Tables(1).ConnectionProperties("User") = "sa"
TransactionReport.Database.Tables(1).ConnectionProperties("Password") = "cons0l"
TransactionReport.Database.Tables(2).ConnectionProperties("Password") = "cons0l"
TransactionReport.Database.Tables(3).ConnectionProperties("Password") = "cons0l"
I wanted to assign the password "cons0l" to user sa and a blank password to user john. How can I do that?
Rate Me! Rate Me! Rate Me!
Time to fly.
Copyright GraysonSoft Inc. 2007
-
Nov 28th, 2005, 11:48 PM
#4
Thread Starter
Hyperactive Member
Re: Cannot see data on report
Never mind. I have already solved it myself.
Rate Me! Rate Me! Rate Me!
Time to fly.
Copyright GraysonSoft Inc. 2007
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|