VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

This code will take data from a recordset into a Word document. This code will create Tables and co

karada  (6 Submissions)   Databases/Data Access/DAO/ADO   VB 6.0   Unknown Difficulty   Thu 6th February 2003   Mon 8th February 2021

This code will take data from a recordset into a Word document. This code will create Tables and columns in the document and populate.

API Declarations


Dim gconPWSConnection As New ADODB.Connection
Dim mrstEmp As New ADODB.Recordset

'Before proceeding do the following
> set reference for Microsoft ActiveX Data Objects 2.7 Library using Project->Refences..
>I am assuming that u have SQL server installed, and have Northwind database and Employees table in it
>In Connection string, specify your server name,database name(northwind),and User name and Password

>In Form Add a push buton and on click event copy and paste the following code

Rate This code will take data from a recordset into a Word document. This code will create Tables and co (2(2 Vote))
This code will take data from a recordset into a Word document. This code will create Tables and co.bas

This code will take data from a recordset into a Word document. This code will create Tables and co Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters