-
WSdevore1
AskWoody LoungerI’m posting it, but my objective is to understand what you did to make it work and why what I want to do doesn’t work.
Thanks – Judy -
WSdevore1
AskWoody LoungerYou wrote :” to overcome the problem of :
a) making sure that Topic# is not blank, just check the Required field of the Topic# field in the table design of tblTopics.”
I was going to make the query criteria be ‘is not null’ and remove the Topic# for any topic which was no longer valid. This seemed easier than adding another field for current since the order may need to be changed around too.”
to display Topic# on the subform frmAll all you have to do is to introduce a new field (say to the left of the question) and make this the Topic#. ”
I had already tried that (see below)
” Before doing this you will need to edit the query “qry tblResult” and add the field Topic# to the grid, thereby making this field available for the new field in the subform frmAll. ”
I had done this, and added the text box to the form. However, no matter how I set it up, it does not seem to work with any third box.
The response field and any single other text field works. Adding a second text or number field makes it not work and I can’t figure out why. I’m sure it must be some simple piece I’m just not considering, but if you have any ideas I’d appreciate your help.” You will also need to put Topic# as the Order By field for the frmAll subform. ”
Since I can’t get this to work, I don’t know how that will go. -
WSdevore1
AskWoody LoungerPatt,
I’ve played a bit with the tables and query, and I haven’t been able to modify itto avoid issues down the road. Precisely, I know the questions may change [some may be reworded, some deleted, some added] and the tblTopics will need to hold all of them forever with the associated TopicID. However, the field Topic# can be blank and the numbers don’t have to match TopicID and it is against that field that I will need the subform to display, in ascending order. I tried to have the subform display both the question and it’s Topic# using =Dlookup(“[Topic#]”,”[tblTopic]”,”[TopicID]![tblTopic]=[TopicID]![frmAll]”) but that doesn’t work. Perhaps because it really is pulling from the qry?
And I looked at the code you wrote
Private Sub Form_AfterInsert()
Dim ssql As String
ssql = “INSERT INTO tblResult (MainID, TopicID, RowCount)”
‘ ssql = ssql & ” SELECT ” & IDMain & ” as expr1, TopicID, ‘x’ as Response, 1 as expr2″
ssql = ssql & ” SELECT ” & IDMain & ” as expr1, TopicID, 1 as expr2″
ssql = ssql & ” FROM tblTopics”
DoCmd.SetWarnings False
DoCmd.RunSQL ssql
DoCmd.SetWarnings True
frmAll.Requery
End Sub
I am very weak on SQL code. Could you explain whether this is the place I should be making the changes rather than the frmAll field?Thank you again. It’s what I asked for, I just need to tweak it a bit more so it will work over the long run.
Judy -
WSdevore1
AskWoody LoungerMarch 28, 2002 at 11:40 pm in reply to: Prob: Making data entry form for survey (Access ’97) #579175Wow! Slick as can be! I can’t thank you enough. All sorts of new tricks to look through.
-
WSdevore1
AskWoody LoungerMarch 28, 2002 at 11:18 am in reply to: Prob: Making data entry form for survey (Access ’97) #579022Patt,
Thanks ever so much! That sounds exactly what I wanted. But I don’t see any attachment either.
Judy -
WSdevore1
AskWoody LoungerI’d prefer the second approach, but I don’t know how/ understand what you mean by “running a stored query which creates all 63 records.” The fewer keystrokes per entry the better. Is there an example I could look at somewhere?
I know how to build a combobox which would have the questions, but that would require using the mouse each time to run down the list and select the correct question, and then moving into another field, typing the response, etc. That is very slow/ labor-intensive and I want to avoid that.
I could build a delete query to run every time the db is opened – that would provide a consistent way the get rid of the nulls. Would that be appropriate? -
WSdevore1
AskWoody LoungerMarch 27, 2002 at 11:09 am in reply to: Prob: Making data entry form for survey (Access ’97) #578783Thank you so much! However, I didn’t think this through well enough, sorry. There will be many times when the survey only answers a few of the questions. I still want all 63 questions to come up, but I do NOT want the results table to hold null responses. Is that possible?
-
WSdevore1
AskWoody LoungerMarch 27, 2002 at 11:08 am in reply to: Prob: Making data entry form for survey (Access ’97) #578782I didn’t think this through well enough, sorry. There will be many times when the survey only answers a few of the questions. I still want all 63 questions to come up, but I do NOT want the results table to hold null responses.
-
WSdevore1
AskWoody LoungerCharlotte – the Main table holds the unique survey records. Results would hold the answers to all 63 questions for each record. Since we don’t review the same record more than once, there should be no way we’d have the same record twice (if I understood your third sentence.)
-
WSdevore1
AskWoody LoungerWendell, thank you but I’m not following all you wrote. Theoretically, every question is supposed to be answered. In reality I know some will be left blank. Basically the answers are NA, Y, or N, OR 0,1,2. If they ledft the question blank, I’d leave the result blank. My problem is that calculations will depend on knowing whether the question was applicable, so NA can’t =null. Blank has to =null.
Whatever way allows for easiest entry – that’s what I want. If there can be 63 response boxes, one after the other, so I can TAB/ enter, TAB/ enter my way down, that would be the fastest. Your option to build a code that creates table entries is fine- but I don’t know how to do that.
I am asked to build dbs to hold survey results all the time. Usually the list of items isn’t long, or the number of surveys/month is few. This time we will be doing 250+/month, and I want it really EASY to wiz through the data entry part. Any help is wonderful.
Thanks – Judy -
WSdevore1
AskWoody LoungerI’ll go hunt for articles about this. Thanks. I tried to make one but I’m not sure if all the pieces are there. I can’t tell how the items get named, hold data, or anything else. Perhaps I can find an example from somewhere.
I appreciate your pointing me in this direction.
Judy -
WSdevore1
AskWoody LoungerI’m not sure I understand. I need a separate form for each of the 100 questions? Do I just place all 100 forms one below the other on another form?
Where or what is the switchboard manager?
Thank you- -
WSdevore1
AskWoody LoungerYes, it is a multi-user db. However, tonight I used the copy I have on my computer at home (I am the administrator of the file) to make a copy with only the 3 pieces, and it still has a problem.
No, there are no sub-reports. 1 table, 1 query, 1 report- very straight forward. The filter is only the query itself- no separate filter. And at this point I have only 10-15 rows in the table, so it’s not a question of too big a file. Now that may be the case on the other db since it now holds over 10,000 records. Is there something I should be doing to protect that one against its size?
-
WSdevore1
AskWoody LoungerI took out all but the table (and deleted most of the entries), query and report- still have the same problem for the one filtering for year. I’d attach it, but even at that minimal level it is 1.06mg.
I’ll keep my fingers crossed that a lightbulb goes off for someone. Thanks for your help.
Judy -
WSdevore1
AskWoody LoungerThanks. I was hoping to avoid that (importing piece by piece into a clean db). I’d run to do that EXCEPT I am having the same problem with reports in a 2nd database, totally unconnected to the first, stored on a different server (although accessed through the same LAN), whether I run it on my version at home or work.
Everything is fine in the 1st one unless the date in the criteria is after 1/16/2002. In the other database, the criteria is the 4 digit year in the short-date field for enddate.
In both cases, the query runs just fine but the report built from only that query stalls. In the lower right hand corner, where the >>>>>>> shows the progress of the report being generated, the message ‘Formatting page, press ctrl_break to stop’ shows up, the progress bar goes to the end, and it just stops right there.
![]() |
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
-
InControl Failure?
by
Casey H
1 hour, 44 minutes ago -
Microsoft : Free 1 year support for Windows 10 after EOL
by
Alex5723
57 minutes ago -
MS-DEFCON 3: Businesses must tread carefully
by
Susan Bradley
1 hour, 36 minutes ago -
McLaren Health Care says data breach impacts 743,000 patients
by
Nibbled To Death By Ducks
13 hours, 14 minutes ago -
WhatsApp banned on House staffers’ devices
by
Alex5723
8 hours, 16 minutes ago -
Is your device eligible?
by
Susan Bradley
16 hours, 14 minutes ago -
Windows 11 Insider Preview build 26200.5661 released to DEV
by
joep517
22 hours, 25 minutes ago -
Windows 11 Insider Preview build 26120.4452 (24H2) released to BETA
by
joep517
22 hours, 26 minutes ago -
Hello Windows…My Problem is Windows Hello…
by
rdleib
23 hours, 42 minutes ago -
New Canon Printer Wants Data Sent
by
Win7and10
1 day ago -
I set up passkeys for my Microsoft account
by
Lance Whitney
13 hours, 30 minutes ago -
AI is for everyone
by
Peter Deegan
23 hours, 33 minutes ago -
Terabyte update 2025
by
Will Fastie
17 hours, 36 minutes ago -
Migrating from Windows 10 to Windows 11
by
Susan Bradley
3 hours, 6 minutes ago -
Lost sound after the upgrade to 24H2?
by
Susan Bradley
1 day, 22 hours ago -
How to move 10GB of data in C:\ProgramData\Package Cache ?
by
Alex5723
2 hours, 15 minutes ago -
Plugged in 24-7
by
CWBillow
1 day, 8 hours ago -
Netflix, Apple, BofA websites hijacked with fake help-desk numbers
by
Nibbled To Death By Ducks
2 days, 11 hours ago -
Have Copilot there but not taking over the screen in Word
by
CWBillow
2 days, 9 hours ago -
Windows 11 blocks Chrome 137.0.7151.68, 137.0.7151.69
by
Alex5723
4 days, 3 hours ago -
Are Macs immune?
by
Susan Bradley
18 hours, 35 minutes ago -
HP Envy and the Function keys
by
CWBillow
3 days, 10 hours ago -
Microsoft : Removal of unwanted drivers from Windows Update
by
Alex5723
1 day, 4 hours ago -
MacOS 26 beta 1 dropped support for Firewire 400/800
by
Alex5723
4 days, 14 hours ago -
Unable to update to version 22h2
by
04om
1 day, 22 hours ago -
Windows 11 Insider Preview Build 26100.4482 (24H2) released to Release Preview
by
joep517
4 days, 22 hours ago -
Windows 11 Insider Preview build 27881 released to Canary
by
joep517
4 days, 22 hours ago -
Very Quarrelsome Taskbar!
by
CWBillow
4 days, 7 hours ago -
Move OneNote Notebook OFF OneDrive and make it local
by
CWBillow
5 days, 11 hours ago -
Microsoft 365 to block file access via legacy auth protocols by default
by
Alex5723
4 days, 23 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.