| | |
Datareports in VB6 using Parent-Child Commands
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Sep 2008
Posts: 5
Reputation:
Solved Threads: 0
Hello Sir,
I am doing a project realted to Jewellery Valuation. I want a report generating specifically on a customer. For that i have created a query in ACCESS to group requried tables for generating report. Now if i drop down the customer name in Page Header Section (Which is Section2). At that position i want Customer Name to be displayed which is from database. If i insert Customer Name and their products the lable for the products get repeated as well as the customer name. And If i insert a Group Header by creating a parent-child relationship in dataenvironment, it gives me error (General Error). Please suggest me any other alternative so that i can display Customer Name at top of the report. Please see the attachment if not understand.
Hi,
Use SHAPE Command
Regards
Veena
Use SHAPE Command
vb Syntax (Toggle Plain Text)
sSQL = "SHAPE {SELECT CustName FROM CustMaster} AS C " & _ " APPEND ({SELECT * FROM Sales } AS S " _ & " RELATE " & _ " CustID To ID ) AS Cust_Sales "
Regards
Veena
•
•
Join Date: Sep 2008
Posts: 5
Reputation:
Solved Threads: 0
Thnks a lot for ur hlp..
Now i want to generate reports between two specific dates..
for tht i am using two DTPicker's.. here's d coding on the button to generate reports.
But there is error at "DataEnvironment1.rptrenewal X, Y"
- Wrong number of arguments or invalid property assignment
Now i want to generate reports between two specific dates..
for tht i am using two DTPicker's.. here's d coding on the button to generate reports.
Private Sub cmdgenerate_Click()
Dim X As Variant
Dim Y As Variant
X = DTPickerstartdate.Value
Y = DTPickerenddate.Value
startdate = DateValue(DTPickerstartdate.Value)
enddate = DateValue(DTPickerenddate.Value)
DTPickerstartdate.Value = str(startdate)
DTPickerenddate.Value = str(enddate)
var = (enddate - startdate)
If var < 1 Then
MsgBox "Choose proper dates", vbExclamation
Else
DataEnvironment1.rptrenewal X, Y
rpt_renewal.Show
Unload DataEnvironment1
End If
Exit Sub
End SubBut there is error at "DataEnvironment1.rptrenewal X, Y"
- Wrong number of arguments or invalid property assignment
Last edited by sumeetpingale; Jan 13th, 2009 at 9:49 am. Reason: Modify
![]() |
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: How to generate data reports using two DTPicker's
- Next Thread: making file handling using visual basic 6.0
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp c++ calculator cd cells.find click client code college column connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver struct subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window





