-
WSCronk
AskWoody LoungerIf FORMNAME is a text field you need to use
“[FORNAME] = ” & chr(34) & Me!FORENAME & chr(34))) -
WSCronk
AskWoody LoungerDecember 13, 2013 at 4:23 pm in reply to: Comparing Data Differences Between Two Identical Access Tables #1428776It seems to me you have 3 ways of tackling this
(1) Use Geek’s suggestion to use a query with a join on the common PK and have 100 or conditions a.Field(n) b.Field(n) to locate records with different field contents (if a query can handle that many otherwise a series of queries). And an outer join to show new and deleted records.
(2) Maintain a log of changes as they are made. (This does not help with historical data.)
(3) Use VBA to loop through recordsets comaring field values, the option I’d personally use. -
WSCronk
AskWoody LoungerI haven’t tried it but how about setting the height of a hidden rectangle.
-
WSCronk
AskWoody LoungerWhy don’t you use the same query for the Word mail merge as is used to print from Access? If there was a filter being applied to the Access report, set up the same criteria in your Word Mail Merge filter. Alternatively, change the query in Access to give you just the records you want.
-
WSCronk
AskWoody LoungerOne way might be to position the data sequentially. For example, if you had say up to 21 data items to display, put 21 unbound text boxes in the report called txt01 to txt21, in say 3 columns, 7 rows
Open a recordset with the 21 field values and then loop through the values with the following (air) code in the OnFormat event of the report
intNextPosition = 1
For n = 1 to 21
if len(rst(n-1) & “”)> 0 then
me(“txt” & format(intNextPosition ,”0#”))= rst(n-1)
intNextPosition =intNextPosition +1
endif
next nI expect you’d also want to have labels describing the data being displayed. One way would be to store the label captions for the 21 fields in a string array and add
me(lbl” & format(intNextPosition ,”0#”)).caption= astrCaption(n)or if the field name were descriptive enough
me(lbl” & format(intNextPosition ,”0#”)).caption=rst(n-1).name -
WSCronk
AskWoody LoungerIs the form bound to the table where the data being printed is sourced from? If so then the easiest is to add the field where you want to store your input value and then add to your code after the data has been input:
me.txtAngleBendCert= strMessageOtherwise you can use an update query to add the data to the table.
-
WSCronk
AskWoody LoungerMarch 28, 2013 at 8:01 pm in reply to: How to convert a single field recordset into a VBA variable? #1383823I’m sure it will work.
datMaximum = DMax(“ExDay”,”qryA”)
After executing this, datMax will contain the maximum value in the field ExDay in the data table or query qryA. Doesn’t matter if there is one field or many. -
WSCronk
AskWoody LoungerI can think of a few situations where your database is opened read only
1. Your default setting is such.
2. The database is in a folder which is read only (or a CD) or the folder cannot create the lock file *.ldb or *.laccdb
3. Someone else has opened it exclusively.This list may not be exhaustive.
-
WSCronk
AskWoody LoungerUse Date() in the criteria of the recordsource for the report. Then you don’t need to worry about macros or BA.
As to running the report in the mornings, if you open the database every morning, you could add the report to the Autoexec macro. If not, then you’ll need to set up some scheduler to open your Access db.
-
WSCronk
AskWoody LoungerSeasons greetings Geek
Your intended solution is better because it aims to pick up not only the “X” situation, but any other where there is a Null value.
I think the issue is in the first part of the IIf which should be Nz([Option])=0 Without the test for zero, the result is zero which is False.
Cronk
-
WSCronk
AskWoody LoungerNovember 15, 2012 at 4:04 pm in reply to: Calculate an age, adding # of months if child is not yet 1 year old #1357229There is a problem though catering for leap years with 366 days.
Your a better man than me with complex IIf statements, but the first part would be
IIf(DateSerial(Year(pDOB) + 1, Month(pDOB), Day(pDOB)) <= Date,…..But there seems to be issues with the rest because I get the results below for a birth date of 16 November 2011 (NB UK date format). I'd be using a function.
Cronk
17/11/2011 1
18/11/2011 12 Months
19/11/2011 12 Months
….
29/11/2011 12 Months
30/11/2011 12 Months
1/12/2011 10 Months
2/12/2011 10 Months
…
15/12/2011 10 Months
16/12/2011 11 Months
17/12/2011 11 Months
18/12/2011 11 Months
….
30/12/2011 11 Months
31/12/2011 11 Months
1/01/2012 9 Months
2/01/2012 9 Months
3/01/2012 9 Months -
WSCronk
AskWoody LoungerSeptember 13, 2012 at 4:10 pm in reply to: Opening multiple copies of the same report in the same window #1348946CStr(CLng(Rnd * (2 ^ 31))) is generating a random, and hopefully unique, number which is used as the Key value to the particular instance of the specific report object that you are creating in the collection of reports.
-
WSCronk
AskWoody LoungerWhat defines an “invalid” receipt number? One that does not exist? You could check the existence first (check out DLookup) and if it does not exist, advise the user accordingly.
-
WSCronk
AskWoody LoungerThanks for the steer. I’ll try it and let you know the outcome. But it won’t be for a couple of weeks because I’ve just arrived in Surfers Paradise to thaw out.
-
WSCronk
AskWoody LoungerLook up Access help on DAvg and use the criteria “FieldName Not Is Null”
![]() |
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
-
Defunct domain for Microsoft account
by
CWBillow
1 hour, 43 minutes ago -
24H2??
by
CWBillow
2 hours, 54 minutes ago -
W11 23H2 April Updates threw ‘class not registered’
by
WindowsPersister
8 hours, 24 minutes ago -
Master patch listing for April 8th, 2025
by
Susan Bradley
5 hours, 16 minutes ago -
TotalAV safety warning popup
by
Theodore Nicholson
12 hours, 47 minutes ago -
two pages side by side land scape
by
marc
1 day, 12 hours ago -
Deleting obsolete OneNote notebooks
by
afillat
1 day, 14 hours ago -
Word/Outlook 2024 vs Dragon Professional 16
by
Kathy Stevens
17 hours, 3 minutes ago -
Security Essentials or Defender?
by
MalcolmP
19 hours, 47 minutes ago -
April 2025 updates out
by
Susan Bradley
2 hours, 22 minutes ago -
Framework to stop selling some PCs in the US due to new tariffs
by
Alex5723
13 hours, 9 minutes ago -
WARNING about Nvidia driver version 572.83 and 4000/5000 series cards
by
Bob99
3 hours, 14 minutes ago -
Creating an Index in Word 365
by
CWBillow
1 day, 5 hours ago -
Coming at Word 365 and Table of Contents
by
CWBillow
21 hours, 13 minutes ago -
Windows 11 Insider Preview Build 22635.5170 (23H2) released to BETA
by
joep517
2 days, 9 hours ago -
Has the Microsoft Account Sharing Problem Been Fixed?
by
jknauth
2 days, 12 hours ago -
W11 24H2 – Susan Bradley
by
G Pickerell
2 days, 14 hours ago -
7 tips to get the most out of Windows 11
by
Alex5723
2 days, 12 hours ago -
Using Office apps with non-Microsoft cloud services
by
Peter Deegan
2 days, 5 hours ago -
I installed Windows 11 24H2
by
Will Fastie
12 hours, 5 minutes ago -
NotifyIcons — Put that System tray to work!
by
Deanna McElveen
2 days, 17 hours ago -
Decisions to be made before moving to Windows 11
by
Susan Bradley
3 hours, 42 minutes ago -
Port of Seattle says ransomware breach impacts 90,000 people
by
Nibbled To Death By Ducks
3 days, 2 hours ago -
Looking for personal finance software with budgeting capabilities
by
cellsee6
2 days, 10 hours ago -
ATT/Yahoo Secure Mail Key
by
Lil88reb
2 days, 10 hours ago -
Devices with apps using sprotect.sys driver might stop responding
by
Alex5723
3 days, 19 hours ago -
Neowin – 20 times computers embarrassed themselves with public BSODs and goofups
by
EP
4 days, 3 hours ago -
Slow Down in Windows 10 performance after March 2025 updates ??
by
arbrich
3 hours, 14 minutes ago -
Mail from certain domains not delivered to my outlook.com address
by
pumphouse
3 days, 12 hours ago -
Is data that is in OneDrive also taking up space on my computer?
by
WShollis1818
3 days, 22 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.