-
WSkucingtidur
AskWoody LoungerSorry. But no, the knowledge base wasn’t of any help. I found a solution though. Instead of the creating the query within MS Access project I just created a view of base on the same select statement on the server. This seems to work. Thanks anyway.
-
WSkucingtidur
AskWoody LoungerI have created an Access project database that is using records stored on the SQL server. On one of the tables, there is more than 300000 records. But when I tried to see the table from Access project, I can only see 5000 records.
-
WSkucingtidur
AskWoody LoungerTried this and tried that. It finally works. Have to make sure the bindingsource fot the lookup table is included, set the datasource, binding source…bla.bla.bla. But it works
-
WSkucingtidur
AskWoody Loungerumm..i am not sure. but i have a dataset which based on a table on the sql server. the lookup table is also on the server.
-
WSkucingtidur
AskWoody LoungerI am trying to export data into an xml document following a predefined schema. I’ using sql2000.
-
WSkucingtidur
AskWoody Loungeroops. sorry. it is a typo. and yes, i need to follow the schema created by an outside party. I am a newbie in XML, SQL/XML as well .NET. Can you possibly point me to the correct way of aproaching this task. I don’t know if I even know where to start! Not all of the fields in my table are on the schema. And of the fields that are on the schema, some are are defined as element, others as attributes etc. Help!
-
WSkucingtidur
AskWoody LoungerThank you! Thank you! Thank you. I am forever indebted!
-
WSkucingtidur
AskWoody LoungerHello hans, francois
I am attaching a barebone version of the databse I am working on. I kinda able get the counter and part of the concatenation done but I am not sure how to iterate so I can get the punctuation correct. Please help! -
WSkucingtidur
AskWoody LoungerI hope this help Hans.
For each symptom I have a checkbox (chkSymptom1 through chkSymptom11). Each corresponding texbox that my user user will be filling in on as needed basis is named txtSymptom1 through txtSymptom11.Francois
How do I implement your suggestion? -
WSkucingtidur
AskWoody LoungerYes, there is a textbox for each checkbox and no, the users doesn’t always have to fill in each textbox.
-
WSkucingtidur
AskWoody LoungerThank Hans. This is exactly what I was looking for.
-
WSkucingtidur
AskWoody Loungeryep. it is not very efficient and slower too. i wish there is a better way of doing this but can’t seem to find any on the net. even microsoft homepage don’t offer much about a solution to this one. but thanks for your help hans. you don’t know how how time i spent trying to get this to work. i would not know even where to start without your pointer!
-
WSkucingtidur
AskWoody LoungerI changed my code to look like this and this seems to work so far:
Dim varItem As Variant
Dim strSQL1 As String, strSQL2 As String, strSQL3 As String
Dim ndx As IntegerDoCmd.SetWarnings False
For ndx = 0 To Me!GroupAttendance2.ListCount – 1
strSQL1 = “INSERT INTO tblTemp ( clientid ) ”
strSQL1 = strSQL1 & “SELECT dsdtcmas.clientid ”
strSQL1 = strSQL1 & “FROM dsdtcmas ”
strSQL1 = strSQL1 & “WHERE (dsdtcmas.clientid) = ‘” & Me!GroupAttendance2.ItemData(ndx) & “‘”
‘MsgBox (strSQL1)
DoCmd.RunSQL strSQL1
Next ndxstrSQL2 = “INSERT INTO tblClientNotes ( act, servdate, Notes, NoteDate, Clinician, SessionStart, SessionEnd, clientid ) ”
strSQL2 = strSQL2 & “SELECT tblGroupNotes.act, tblGroupNotes.servdate, tblGroupNotes.Notes, tblGroupNotes.NoteDate, tblGroupNotes.Clinician, tblGroupNotes.SessionStart, tblGroupNotes.SessionEnd, tblTemp.clientid ”
strSQL2 = strSQL2 & “FROM tblGroupNotes, tblTemp ”
strSQL2 = strSQL2 & “WHERE (tblGroupNotes.NoteID)=[Forms]![frmGroupNotes]![NoteID];”
‘MsgBox (strSQL2)
DoCmd.RunSQL strSQL2strSQL3 = “DELETE tblTemp.clientid FROM tblTemp;”
DoCmd.RunSQL strSQL3DoCmd.SetWarnings True
End Sub
-
WSkucingtidur
AskWoody LoungerHello hans,
i tried your code. however, when there is more than 25 items in the listbox I still get the SQL too complex error message. is it normal for Access to behave like this?i forgot to mention that the original table that i am copying the data from (dsdtcmas) is an old foxpro dbf type file, may be this has something to do with it.
-
WSkucingtidur
AskWoody LoungerFebruary 9, 2005 at 4:06 pm in reply to: Run an append query and iterating down a listbox (Access2K) #927654Hello Hans,
The row source type for lstAttendees is Table/Query
The row source is:
SELECT dsdtcmas.clientid, Trim([lastname]) & “, ” & Trim([firstName]) AS ClientName
FROM dsdtcmas INNER JOIN dsdtchgp ON dsdtcmas.clientid = dsdtchgp.clientid
WHERE (((dsdtchgp.meeting)=[Forms]![frmScheduledMeetings]![lstMeetings]) AND ((dsdtchgp.MeetingDate)=[Forms]![frmScheduledMeetings]![lstMeetingDate]))
ORDER BY Trim([lastname]) & “, ” & Trim([firstName]);I was trying to run the append query from the query design grid with both frmScheduledMeetings and frmGroupNotes open. The append query works really well when there is only one person is listed as attending the meeting on the specified date in lstAttendees. When there are more than one attendees, the error message that I get is
![]() |
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
-
Windows 10 finally gets fix
by
Susan Bradley
3 hours, 34 minutes ago -
AMD Ryzen™ Chipset Driver Release Notes 7.04.09.545
by
Alex5723
4 hours, 54 minutes ago -
Win 7 MS Essentials suddenly not showing number of items scanned.
by
Oldtimer
9 hours, 27 minutes ago -
France : A law requiring messaging apps to implement a backdoor ..
by
Alex5723
17 hours, 59 minutes ago -
Dev runs Windows 11 ARM on an iPad Air M2
by
Alex5723
18 hours, 48 minutes ago -
MS-DEFCON 3: Cleanup time
by
Susan Bradley
8 hours, 47 minutes ago -
KB5056686 (.NET v8.0.15) Delivered Twice in April 2025
by
lmacri
14 hours, 12 minutes ago -
How to enable Extended Security Maintenance on Ubuntu 20.04 LTS before it dies
by
Alex5723
1 day, 6 hours ago -
Windows 11 Insider Preview build 26200.5562 released to DEV
by
joep517
1 day, 9 hours ago -
Windows 11 Insider Preview build 26120.3872 (24H2) released to BETA
by
joep517
1 day, 10 hours ago -
Unable to eject external hard drives
by
Robertos42
43 minutes ago -
Saying goodbye to not-so-great technology
by
Susan Bradley
9 hours, 47 minutes ago -
Tech I don’t miss, and some I do
by
Will Fastie
15 hours, 5 minutes ago -
Synology limits hard drives
by
Susan Bradley
2 days, 14 hours ago -
Links from Microsoft 365 and from WhatsApp not working
by
rog7
1 day, 16 hours ago -
WhatsApp Security Advisories CVE-2025-30401
by
Alex5723
2 days, 20 hours ago -
Upgrade Sequence
by
doneager
2 days, 13 hours ago -
Chrome extensions with 6 million installs have hidden tracking code
by
Nibbled To Death By Ducks
19 hours, 13 minutes ago -
Uninstall “New Outlook” before installing 2024 Home & Business?
by
Tex265
1 day, 12 hours ago -
The incredible shrinking desktop icons
by
Thumper
3 days, 17 hours ago -
Windows 11 Insider Preview Build 22635.520 (23H2) released to BETA
by
joep517
3 days, 18 hours ago -
Connecting hard drive on USB 3.2 freezes File Explorer & Disk Management
by
WSJMGatehouse
17 hours, 58 minutes ago -
Shellbag Analyser & Cleaner Update
by
Microfix
11 hours, 28 minutes ago -
CISA warns of increased breach risks following Oracle Cloud leak
by
Nibbled To Death By Ducks
4 days, 4 hours ago -
Outlook 2024 two sent from email addresses
by
Kathy Stevens
3 days, 8 hours ago -
Speeding up 11’s search
by
Susan Bradley
1 day, 16 hours ago -
HP Pavilion Will Not Wake Up After Being Idle for Longer Period
by
WSwalterwood44
2 days, 4 hours ago -
Make a Windows 11 Local Account Passwordless
by
Drcard:))
4 days, 18 hours ago -
Ubuntu 25.04 (Plucky Puffin)
by
Alex5723
5 days, 1 hour ago -
24H2 fixed??
by
CWBillow
3 days, 18 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.