I have a VB program that access' a Access DB. I have one form set up where the user selects which fields he wants the data from to be placed on the data report.
2 questions:
1) Do I need to design the report layout, or does VB automatically place the controls on the form? Currently I only have a blank data report created.
2) Below is the code I have on my click command of my command button to generate the report:
Private Sub
Command1_Click()
DataEnvironment1.Soldiers cboSource1.List(cboSource1.ListIndex)
rptSelect.Show
End Sub
What am I missing here? Whenever I click it it gets an error :
Compile Error:
Wrong number of arguments or invalid property assignment.
Your help is appreciated.
Thanks
Robert
2 questions:
1) Do I need to design the report layout, or does VB automatically place the controls on the form? Currently I only have a blank data report created.
2) Below is the code I have on my click command of my command button to generate the report:
Private Sub
Command1_Click()
DataEnvironment1.Soldiers cboSource1.List(cboSource1.ListIndex)
rptSelect.Show
End Sub
What am I missing here? Whenever I click it it gets an error :
Compile Error:
Wrong number of arguments or invalid property assignment.
Your help is appreciated.
Thanks
Robert