Am building VB6 application which accesses table/data created in Access.<br>
<br>
In VB6, have added Connection1 to DataEnvironment1 which has Data Link to the desired Access database. "Test Connection" button comes back "successful".<br>
<br>
Then, in building DataReport1, "DataEnvironment1" appears (as expected) as one of the choices (in this case, the only choice) in the DataSource property of DataReport1. Apparently, there is no automatic display of choices for "DataMember" property of DataReport once DataSource has been defined (I would expect to see a list of queries/tables once DataSource has been defined), so I typed in valid query name that is part of Access database.<br>
<br>
Have added text boxes to DataReport1 to display fields from Access database. Text box "DataMember" property automatically shows DataMember as typed in DataMember property of DataReport1 (above) as one of the choices (in this case, the only choice).<br>
<br>
Having done all this, I would expect "DataField" property of Text Box on DataReport1 to display a list of fields from DataMember selection. No list of fields is displayed.<br>
<br>
Continued anyway to type in valid field name in "DataField" property of text box.<br>
<br>
In test run "print preview" of DataReport1, I get the error message "Failed getting rows from current data source."<br>
<br>
I'm befuddled/bewildered/flummoxed/bamboozled. Don't know how to properly link VB6 DataReport to Access database. Does this need to be done in code, or does DataEnvironment/Connection take care of defining and linking the source database to the DataReport text boxes?<br>
<br>
Seems like MS tried to make this as simple and intuitive as possible, but I can't seem to make this work.<br>
<br>
Any suggestions?<br>
<br>
In VB6, have added Connection1 to DataEnvironment1 which has Data Link to the desired Access database. "Test Connection" button comes back "successful".<br>
<br>
Then, in building DataReport1, "DataEnvironment1" appears (as expected) as one of the choices (in this case, the only choice) in the DataSource property of DataReport1. Apparently, there is no automatic display of choices for "DataMember" property of DataReport once DataSource has been defined (I would expect to see a list of queries/tables once DataSource has been defined), so I typed in valid query name that is part of Access database.<br>
<br>
Have added text boxes to DataReport1 to display fields from Access database. Text box "DataMember" property automatically shows DataMember as typed in DataMember property of DataReport1 (above) as one of the choices (in this case, the only choice).<br>
<br>
Having done all this, I would expect "DataField" property of Text Box on DataReport1 to display a list of fields from DataMember selection. No list of fields is displayed.<br>
<br>
Continued anyway to type in valid field name in "DataField" property of text box.<br>
<br>
In test run "print preview" of DataReport1, I get the error message "Failed getting rows from current data source."<br>
<br>
I'm befuddled/bewildered/flummoxed/bamboozled. Don't know how to properly link VB6 DataReport to Access database. Does this need to be done in code, or does DataEnvironment/Connection take care of defining and linking the source database to the DataReport text boxes?<br>
<br>
Seems like MS tried to make this as simple and intuitive as possible, but I can't seem to make this work.<br>
<br>
Any suggestions?<br>