-
WSchuckrau
AskWoody LoungerYes, otherwise your first suggestion would have worked fine. Except for the column header all cells must be populated with a COST_CENTER number.
Other cells in column A are populated with other cities and also the months. This data is irrelevant as well.
-
WSchuckrau
AskWoody LoungerI have plucked the ctrl and D keys from my keyboard.
I want to fill Column A to capture all the data related to it in the other columns.
-
WSchuckrau
AskWoody LoungerGentleman, thank you for your response. When I do this manually I select a range and use ctrl D and it copies over the occasional non-blank cell that does not have a number. (Something I failed to mention in my post)
I have attached a sample.
-
WSchuckrau
AskWoody LoungerGentlemen, thanks for your input.
-
WSchuckrau
AskWoody LoungerAlthough the database is shared, it is not split. I have no say over it, I just get a call to compact it now and then. Each user is in the habit of opening it and leaving it open all day. I knew Access would know if more than one user had it open, but I did not know if Access could prevent it being opened while being compacted. I take it, it cannot.
-
WSchuckrau
AskWoody LoungerWorks beautifully! Thanks so much.
-
WSchuckrau
AskWoody LoungerI have a calculated field on the sub form and when it reaches 80 I want the forms allow edits property to be set to False, and when a new record is started and the value is less than 80 to be set to True. I set the sub forms allow edits property to false and used the following code:
If Me.Hours2 80 Then
Me.AllowEdits = True
End IfProblem is I can’t get it to work. I have attached a database.
-
WSchuckrau
AskWoody LoungerOnce again, I thank you for your help. This forum is something special to me. It makes me feel I have friends all over the world.
-
WSchuckrau
AskWoody LoungerWhen I use this code I get a “variable not defined” error at “adhcErrInvalidRow”.
-
WSchuckrau
AskWoody LoungerI decided to work around by setting the BorderStyle property to None and using a rectangle to surround the form. That allows the choice of a color.
Thanks Hans.
-
WSchuckrau
AskWoody LoungerI see the error of my ways. I had combined the Parces ID and Tax Authority ID as a single key. Thanks for your help.
-
WSchuckrau
AskWoody LoungerMay 16, 2006 at 12:39 pm in reply to: Access 2003 sp2 (count non blank rows in a spreashseet) #1012359This works perfectly. Obviously I could not have even begun to do this without you. Many thanks.
-
WSchuckrau
AskWoody LoungerMay 16, 2006 at 11:51 am in reply to: Access 2003 sp2 (count non blank rows in a spreashseet) #1012334Edited by HansV to provide link to post – see Help 19
Thanks for the suggestion Steve…I definitely should have known that.
Hans, I refer you back to a previous post you helped me with, post 574114 my function that doesn’t do anything. Well this is another step I need to add to give me something to reconcile too.
I import the data from a large number of spreadsheets and process it through a database. The last time I ran my process there were a few sheets that were not picked up. I ran them by themselves and they processed perfectly. I thought if I could count all the rows in each spreadsheet and put them into a table, I would then have a total record count to reconcile to against my Access table where all the records are imported. Then I could know if something failed.
The first column of each spreadsheet is what I will use. I created a macro in Excel to do the count, but I do not know how to put it into VBA in Access, nor do I know how to store the data from each count into a table. So all I have is the macro below.
Sub RowCount()
ActiveCell.FormulaR1C1 = “=COUNTA(R[-3]C[-9]:R[996]C[-9])”
Range(“J5”).Select
End Sub -
WSchuckrau
AskWoody LoungerIt works perfectly! For the sake of explanation, the spreadsheets were originally delivered to the users as text files (don’t ask me, I have no idea why), and some of the users saved them that way after they added their data. Others however, saved them as xls. To make them consistent I added this function to my procedure prior to importing the data.
Thanks again for your help and patience.
-
WSchuckrau
AskWoody LoungerWhen I step through the code and hover over xlWsh in the IF statement it equals nothing and never changes. Shouldn’t it change to =Test?
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
May 2025 updates are out
by
Susan Bradley
11 minutes ago -
Windows 11 Insider Preview build 26200.5600 released to DEV
by
joep517
3 hours, 18 minutes ago -
Windows 11 Insider Preview build 26120.3964 (24H2) released to BETA
by
joep517
3 hours, 19 minutes ago -
Drivers suggested via Windows Update
by
Tex265
3 hours, 10 minutes ago -
Thunderbird release notes for 128 esr have disappeared
by
EricB
54 minutes ago -
CISA mutes own website, shifts routine cyber alerts to X, RSS, email
by
Nibbled To Death By Ducks
10 hours, 10 minutes ago -
Apple releases 18.5
by
Susan Bradley
4 hours, 35 minutes ago -
Fedora Linux 40 will go end of life for updates and support on 2025-05-13.
by
Alex5723
11 hours, 36 minutes ago -
How a new type of AI is helping police skirt facial recognition bans
by
Alex5723
12 hours, 14 minutes ago -
Windows 7 ISO /Windows 10 ISO
by
ECWS
1 hour, 6 minutes ago -
No HP software folders
by
fpefpe
19 hours, 55 minutes ago -
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
3 hours, 52 minutes ago -
Stay connected anywhere
by
Peter Deegan
1 day, 1 hour ago -
Copilot, under the table
by
Will Fastie
16 hours, 31 minutes ago -
The Windows experience
by
Will Fastie
1 day, 7 hours ago -
A tale of two operating systems
by
Susan Bradley
22 hours, 28 minutes ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
1 day, 12 hours ago -
Where’s the cache today?
by
Up2you2
2 days, 4 hours ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
1 day, 20 hours ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
21 hours, 17 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
16 minutes ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
2 days, 21 hours ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
2 days, 21 hours ago -
regarding april update and may update
by
heybengbeng
2 days, 23 hours ago -
MS Passkey
by
pmruzicka
2 days ago -
Can’t make Opera my default browser
by
bmeacham
3 days, 6 hours ago -
*Some settings are managed by your organization
by
rlowe44
2 days, 17 hours ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
3 days, 5 hours ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
4 days, 1 hour ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
4 days, 10 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.