Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 13th, 2004, 01:22 PM
Registered User
 
Join Date: Oct 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to add new column to recordset??

I know I can use rs to get recordset from certain table or tables such as:
strSql = "Select Fund, Deal, [Deal Name] from tbl_irrdeals “
rs.Open strSql, con, ADODB.adOpenForwardOnly, ADODB.adLockBatchOptimistic

But my question is I need add one Boolean column which is not related to any table to this recordset.
Could I use this: strSql = "Select Fund, Deal, [Deal Name], 0 as flag from tbl_irrdeals “

I heard there is append function: rs.fields.append flag, adboolean but it doesn’t work with me.
Anybody know how to add the new column to the recordset??? Thanks a lot







Similar Threads
Thread Thread Starter Forum Replies Last Post
Column Name from ADODB Recordset Paula222 Access VBA 3 February 10th, 2006 12:08 PM
Sum a column from complex recordset shogg Access ASP 1 May 5th, 2005 07:29 AM
Add Datetime to Recordset martinaccess Access 2 October 10th, 2004 07:30 AM
Delete a column from an ADO recordset. madkaikar_ashish Classic ASP Professional 1 September 11th, 2004 09:26 AM
Determining size of recordset column gp_mk ADO.NET 0 May 27th, 2004 04:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.