-
WSaap2
AskWoody LoungerThank you for your help. I have built in a function based on the code you referenced. I can tell it is opening our remote location. I am having the button on the form export the tables as text files and referencing the text file names for the function. Do I need the entire path name of the text files or is the current path assumed?
-
WSaap2
AskWoody LoungerThanks Charlotte. Works like a carm.
-
WSaap2
AskWoody LoungerThanks Pat. These are text fields so I had to enclose them in Chr(34) but it works just fine.
-
WSaap2
AskWoody LoungerPat,
Can you tell me the appropriate syntax for the “In” operator? Right now I have a function that returns a string like this:strItems = “10408W” Or “10001C”
The SQL statement looks like this:
strSQL = “INSERT INTO [ClientNoMatch] ([Client No], [Client Name]) ” & _
“SELECT [Client Master].[Client No], [Client Master].[Client Name] FROM [Client Master]” & _
“WHERE [Client Master].[Client No] In & strItems ”I get the following error message:
Run time error ‘3075’:
In operator without () in query expression ‘[Client Master].[Client No] In & strItems’.First, should strItems be enclosed in ( parenthesis )?
Second, should the list of client numbers in strItems be an “Or” statement?Thanks
-
WSaap2
AskWoody Loungergood point. This was a SQL statement copied from the SQL View of the Query in Access. I think Access automatically puts that last line it there. I removed it and the query works just fine.
Thanks, -
WSaap2
AskWoody Loungerworks perfectly. Thanks.
-
WSaap2
AskWoody LoungerHans,
Thanks. This works fine for the subreports and prints the correct quantities. The only problem now is that we need the Name Section to print before each of the copies. For example, when we come to a customer with 2 CC names, we get:Section Header with Company Name, address, City, St, Zip, CCs
Copy one of subreport 1
Copy one of subreport2
Copy two of subreport 1
copy two of subreport 2
copy three of subreport 1
copy three of subreport 2So, we are going to explore adding another section heading. Any suggestions?
thanks, -
WSaap2
AskWoody LoungerPat,
The quantity (intCopyCount) is calculated in the query that populates the report. Would I be able to set the loop in the form not knowing the value of intCopyCount first?However, the form has a multiselect listbox where the client(s) are selected. If no clients are selected, all reports are printed. I could attach a quantity to each client in the listbox by adjusting the query in the rowsource property, I suppose. Or do you think there is an easier way?
Best regards, -
WSaap2
AskWoody LoungerWe would like to make one print run but we want to print multiple copies of the report for those clients who have multiple CC: names. Example – Client ABC has no CC: names therefore only one copy but client DEF has 2 CC: and needs three copies of the their report.
I have this code in the page header section but it does not repeat when needed.Private Sub PageHeaderSection_Print(Cancel As Integer, PrintCount As Integer)
Dim intCopyCount As Integer ‘qty count from query
Dim I As Integer ‘counter
‘qty 0 means one copy to be printed
‘qty greater than 0 means qty value to be printed.intCopyCount = Me.Qty
If intCopyCount > 0 Then
For I = 1 To intCopyCount + 1
Me.NextRecord = False
Next I
Else
Me.NextRecord = True
End If
End SubThe report looks like this:
======================
Page header – contains nothing Height = 0
NameHeader – contains the client name, address, date and cc: lines
ABC Company
123 Anystreet
Anytown, ST, 12345-5678Date
cc: =IIf(IsNull([CC]),””,”cc: ” & [CC1] & Chr(13) & Chr(10) & IIf(IsNull([CC 2]),””,” ” & [CC2]))
Some standard text. ” Attached please find your monthly reports….blah blah”
Client Number Header – two sub reports separated by a PageBreak control
SubReport A – Active accounts
SubReport B – Closed AccountsDetail section – contains nothing – Height = 0
Page footer Section- contains nothing – Height = 0
Hope this helps. -
WSaap2
AskWoody LoungerWendell and Mark,
Thanks. It turns out that I have reason to use both of your solutions. The continuous form view works for a human resources application that we have. When you say “double rows”, Wendell, I assume that you mean that I put the first 5 fields on one “row” and then the last 4 directly under while in form design view. Each form is really only about 1/2 inch in height and spans the width of an 800×600 display with no scrolling.The code solution for works for the other db. In this one, we want the users to be able to see something that looks as much like an Excel spreadsheet as we can.
Thanks,
-
WSaap2
AskWoody LoungerGo to the Visual Basic Editor and click on Tools|References. To get to the Visual Basic Editor, select any form or report or module in the database window and click View|Code.
I usually get help from this forum but once in a while I know an answer. I hope this helps.
aap2 -
WSaap2
AskWoody LoungerThanks. Front-ends are located on workstations, mostly WindowsXP with OfficeXP. Tables are indexed but I am curious about what gets pulled to the user’s front end when they open a report based on a query. Is the recordset made on the backend and then just the results sent over the lines to the front-end or do entire tables come accross for processing on the user desktop?
Also, did SQL Server improve performance?
Thanks,
-
WSaap2
AskWoody LoungerThanks for the tip. I’ll check it out.
aap2 -
WSaap2
AskWoody LoungerWendell, Mark,Pat,
Thanks for the guidance. For the moment, a batch file that automatically copies the front end to the users pc is fine. Another deployment question has come up. We have multiple users, some with windows NT some with windows xp some with Office 97 some with office xp and some without office. The “run-time” version of the db front-end has been a good solution here. However, I put the setup.exe file and all the supporting files on a network location that all have access to and tell users to navigate to that location on the network in windows explorer and run the setup.exe. Is there a good reason to make some installation CDs and pass them around instead?
Thanks again, -
WSaap2
AskWoody LoungerMark,
Thanks for your help. So, if I am understanding you correctly, all I have to do is go into the “Support” folder on their PC and replace the “db.mdb” with “revised_db.mdb” (I keep the same db name) and when they run the application next time they should see the revised form and query? Is this the standard way to revise deployed run-time applications? If so, is there a way to make this a little more automatic? Can I build some utility into it to check for the latest version or something like that?
Thanks,
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
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
-
Win 7 MS Essentials suddenly not showing number of items scanned.
by
Oldtimer
1 hour, 42 minutes ago -
France : A law requiring messaging apps to implement a backdoor ..
by
Alex5723
10 hours, 14 minutes ago -
Dev runs Windows 11 ARM on an iPad Air M2
by
Alex5723
11 hours, 3 minutes ago -
MS-DEFCON 3: Cleanup time
by
Susan Bradley
1 hour, 2 minutes ago -
KB5056686 (.NET v8.0.15) Delivered Twice in April 2025
by
lmacri
6 hours, 27 minutes ago -
How to enable Extended Security Maintenance on Ubuntu 20.04 LTS before it dies
by
Alex5723
22 hours, 16 minutes ago -
Windows 11 Insider Preview build 26200.5562 released to DEV
by
joep517
1 day, 2 hours ago -
Windows 11 Insider Preview build 26120.3872 (24H2) released to BETA
by
joep517
1 day, 2 hours ago -
Unable to eject external hard drives
by
Robertos42
5 hours, 42 minutes ago -
Saying goodbye to not-so-great technology
by
Susan Bradley
2 hours, 2 minutes ago -
Tech I don’t miss, and some I do
by
Will Fastie
7 hours, 19 minutes ago -
Synology limits hard drives
by
Susan Bradley
2 days, 6 hours ago -
Links from Microsoft 365 and from WhatsApp not working
by
rog7
1 day, 8 hours ago -
WhatsApp Security Advisories CVE-2025-30401
by
Alex5723
2 days, 12 hours ago -
Upgrade Sequence
by
doneager
2 days, 5 hours ago -
Chrome extensions with 6 million installs have hidden tracking code
by
Nibbled To Death By Ducks
11 hours, 28 minutes ago -
Uninstall “New Outlook” before installing 2024 Home & Business?
by
Tex265
1 day, 4 hours ago -
The incredible shrinking desktop icons
by
Thumper
3 days, 9 hours ago -
Windows 11 Insider Preview Build 22635.520 (23H2) released to BETA
by
joep517
3 days, 11 hours ago -
Connecting hard drive on USB 3.2 freezes File Explorer & Disk Management
by
WSJMGatehouse
10 hours, 13 minutes ago -
Shellbag Analyser & Cleaner Update
by
Microfix
3 hours, 43 minutes ago -
CISA warns of increased breach risks following Oracle Cloud leak
by
Nibbled To Death By Ducks
3 days, 20 hours ago -
Outlook 2024 two sent from email addresses
by
Kathy Stevens
3 days ago -
Speeding up 11’s search
by
Susan Bradley
1 day, 8 hours ago -
HP Pavilion Will Not Wake Up After Being Idle for Longer Period
by
WSwalterwood44
1 day, 20 hours ago -
Make a Windows 11 Local Account Passwordless
by
Drcard:))
4 days, 10 hours ago -
Ubuntu 25.04 (Plucky Puffin)
by
Alex5723
4 days, 17 hours ago -
24H2 fixed??
by
CWBillow
3 days, 10 hours ago -
Uninstalr Updates
by
jv16
4 days, 23 hours ago -
Apple zero days for April
by
Susan Bradley
19 hours, 46 minutes 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.