Wrox Programmer Forums
|
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 August 10th, 2006, 06:49 PM
Authorized User
 
Join Date: Feb 2006
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default sql problem in recordset

I am filling a listbox with a recordset using sql. The problem is one field sometimes has a comma in it and the sql splits it into two fields, which then messes up the listbox.

"Soupy Sales" works fine, it is all in one field.
"Sales, Soup" does not, it needs room to spread out.

Unfortunately the field contents cannot be changed.

Thanks.

ScottP
__________________
ScottP
 
Old August 11th, 2006, 06:47 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

What is the SQL statement?

mmcdonal
 
Old August 11th, 2006, 10:28 AM
Authorized User
 
Join Date: Feb 2006
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default

After further research I realized it is not the sql statement, it is the way the listbox handles the data coming in. The listbox takes all commas and semi-colons and splits the data into two or more cells.

ScottP





Similar Threads
Thread Thread Starter Forum Replies Last Post
XML snippet stored in SQL Recordset tpattison Crystal Reports 0 January 8th, 2007 02:20 PM
INSERT INTO from a SQL Server recordset? kcassidy Access 13 March 21st, 2006 08:35 AM
SQL record count / recordset chacquard Access VBA 4 July 3rd, 2004 04:41 AM
ADO Recordset and SQL Statements Dataman Access VBA 4 March 21st, 2004 06:19 PM
recordset ms sql staafoz Classic ASP Databases 2 October 31st, 2003 02:05 AM





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