active x data objects
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Active X Data Objects

Active X Data Objects

resolvedResolved · Low Priority · Version 2003

replyReply Fri 7 Nov 2008, 16:00Delegate Craig said...

Craig has attended:
Excel VBA Advanced course

Active X Data Objects

If you want to run multiple queries on a single connection, do you create a new recordset each time or simply write over it with the results of the next query?

For upcoming training course dates see: Pricing & availability

replyReply Thu 27 Nov 2008, 11:29Trainer Stephen said...

RE: Active X Data Objects

Hi Craig

Thank you for your question

Either method would work OK. The main question would be whether you wanted to compare two of the queries with each other. If so then clearly you would need two recordsets, otherwise it would be OK to reuse the same recordset variable for successive queries.

Regards

Stephen

 

Please browse our web site to find out more about
excel visual basic training and other Microsoft training courses.

Excel tip:

Convert Text to Columns in Excel 2010

If you have a cell in your Excel spreadsheet that contains a lot of text and you want to divide it into separate columns, this can only be done if there is a logical character which separates the text, for example, a comma.

Select the cells you would like to convert. On the Data tab, click Text to Columns. Choose the format of your current data.

Select Delimited if the text contains a logical character otherwise select Fixed Width if there are a certain number of spaces between each field.

Click Next when a preview of the data appears. Then select the type of character that separates the various fields. If the character is not listed, select Other and enter the character.

Click Next again and then choose the format for each of the columns. Select the column heading in the Data preview and then select a data type from the Column data format options.

Click Finish and the text will appear in several columns.

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard