Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sql query problem

Status
Not open for further replies.

jajiyiko

Programmer
Mar 18, 2002
33
TR
Hi!

I have a problem

I have two dbf files

I want to link this files but this files are mot linked.



where is wrong code?
please help me?

This code is not work




Dim crapp As New CRAXDRT.Application
Dim report As CRAXDRT.report
Dim crapor As CRAXDRT.Database
Dim yalcin As Integer
Dim db1 As DAO.Database
Dim rs1 As Recordset

Private Sub Command1_Click()
Set db1 = OpenDatabase("D:\Yeni Klasör\posak", False, False, "DbASE III;")
Set rs1 = db1.OpenRecordset("select * from CIKIS,GIR WHERE CIKIS.KANTAR=GIR.KANTAR")

crapor.SetDataSource rs1
Set report = crapp.OpenReport("D:\Yeni Klasör\posak\Dene2.rpt")

item1 = "{CIKIS.KANTAR}"
item2 = "{GIR.KANTAR}"
report.FormulaFields.Item(1).Text = item1
report.FormulaFields.Item(2).Text = item2

CRViewer1.ReportSource = report
CRViewer1.ViewReport
CRViewer1.Zoom 100
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top