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 January 30th, 2007, 03:53 AM
Authorized User
 
Join Date: Jan 2007
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default Fill in the blanks

I have a table with three columns

Column A, Column B, Column C

in these 3 columns i have different values and in two fo these columns there are blanks. I want to search for this blanks and fill them in with a static value. But only the two columns.
How can i do this? Update Queries?

Thanks you


 
Old January 30th, 2007, 09:36 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Update queries.

Remember to back up your data first.

In the criteria for these columns, add this:

Is Null Or = ""

This will pull all the empty records. Do this one Column at a time since there may be a case where there is something in Column B, and nothing in Column C, and that may update Column B.

Anyway, then add whatever value you want in the To: line, and then click the ! to run the query.

Did that work?


mmcdonal
 
Old January 30th, 2007, 09:59 AM
Authorized User
 
Join Date: Jan 2007
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No it did not work and i tried one column at a time..



 
Old January 30th, 2007, 10:02 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Try to build a select query that shows only those records with blanks in Column B to start with, and then post your SQL.

mmcdonal
 
Old January 30th, 2007, 10:02 AM
Authorized User
 
Join Date: Jan 2007
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

this is the SQL i get on the update query..

UPDATE Append_Working SET Append_Working.Debits = "\fp"
WHERE (((Append_Working.Debits) Is Null Or (Append_Working.Debits)=""));







Similar Threads
Thread Thread Starter Forum Replies Last Post
Trailing blanks for 'text' output Neal XSLT 5 May 29th, 2008 06:25 AM
"fill" is different from "load" salemkoten Visual Studio 2005 0 October 23rd, 2006 04:24 AM
blanks in Dreamweaver recordsets? fskilnik Dreamweaver (all versions) 8 June 1st, 2006 04:06 PM
Firing Blanks... ozPATT Access VBA 11 January 20th, 2006 11:26 AM
regular expression with numbers and blanks burdickdave ASP.NET 1.0 and 1.1 Professional 4 March 5th, 2004 09:54 AM





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