I was browsing a vb database book in barnes and noble to see if i could get any ideas on how to finish a program.
the program works except that the way it prints uses the entire database, and not just the records I've queried for printing.
I saw something where they took the database connection and put the data into a recordset.
how would I go about doing that.
I want to use the same sql string used to view the data (no problems with strings, tested every possible combination of choices for errors), and i want the "recordset" to only be used for printing, it can't affect data input, which is tightly integrated with viewing data.
I'm using ADO with an access database I believe. vb is 6.0 sp5 with a add-in called tdbgrid of something similar (allows for grid viewing of databases in vb)
anyone have any good websites I can hit, or any code suggestions. a website with detailed database info would be best, something I can use for a future resource
the program works except that the way it prints uses the entire database, and not just the records I've queried for printing.
I saw something where they took the database connection and put the data into a recordset.
how would I go about doing that.
I want to use the same sql string used to view the data (no problems with strings, tested every possible combination of choices for errors), and i want the "recordset" to only be used for printing, it can't affect data input, which is tightly integrated with viewing data.
I'm using ADO with an access database I believe. vb is 6.0 sp5 with a add-in called tdbgrid of something similar (allows for grid viewing of databases in vb)
anyone have any good websites I can hit, or any code suggestions. a website with detailed database info would be best, something I can use for a future resource