-
WSLeesha
AskWoody LoungerSigh, no it isn’t. I even tried taking the SQL statement out of the rowsource property to see if that would make a difference and to see if only using the command button to fill the listbox would help, however I get the same parameter question.
Leesha
-
WSLeesha
AskWoody LoungerAre you sick of me yet? I got error messages looking for parameters for frmtblTimesheet!Startdate and the same for enddate.
RE the listbox name……………ya I know. I’m updating this database for a friend and have had so many problems with it I didn’t want to change too much. I normally name everything. Fortunately there are only two listboxes on the form and I’ve spent so much time with them that I have them memorized!
Leesha
-
WSLeesha
AskWoody LoungerThis is the code I put behind the command button. I don’t get error messages, however the listbox becomes completely blank????
Me.List48.RowSource = _
“SELECT tblTimeSheet.AutoNumber, tblEmployee.[Employee Name], tblTimeSheet.ClientID, tblTimeSheet.AccountId, tblTimeSheet.Date, tblClientDemographics.[Client Name], tblAccountDemographics.[Account Name], tblTimeSheet.EmployeeID, tblTimeSheet.Paid” & _
“FROM tblEmployee INNER JOIN (tblClientDemographics INNER JOIN (tblAccountDemographics INNER JOIN tblTimeSheet ON tblAccountDemographics.ID = tblTimeSheet.AccountId) ON tblClientDemographics.ID = tblTimeSheet.ClientID) ON tblEmployee.[Auto Number] = tblTimeSheet.EmployeeID” & _
“WHERE tblTimeSheet.Date Between Forms!frmtblTimesheet!Startdate And Forms!frmtblTimesheet!Enddate” & _
“ORDER BY tblEmployee.[Employee Name], tblTimeSheet.Date, tblClientDemographics.[Client Name], tblAccountDemographics.[Account Name]”Leesha
-
WSLeesha
AskWoody LoungerThanks Hans! Will give it a shot.
I just posted a new thread re the issue I’m having with numbers replacing the Account name. There is no ryhme nor reason to how its happening!
Thanks,
Leesha -
WSLeesha
AskWoody LoungerOK, I told you’d I’d be back. This database is quite large and the owner would like to limit the list box in the AR sheet to only show records within a specified date range that they enter. If I put non-bound “To” and “From” nonbound input boxes on the form, how would you suggest entering the code? The present rowsource code for the list box is as follows:
SELECT tblTimeSheet.AutoNumber, tblEmployee.[Employee Name], tblTimeSheet.ClientID, tblTimeSheet.AccountId, tblTimeSheet.Date, tblClientDemographics.[Client Name], tblAccountDemographics.[Account Name], tblTimeSheet.EmployeeID, tblTimeSheet.Paid
FROM tblEmployee INNER JOIN (tblClientDemographics INNER JOIN (tblAccountDemographics INNER JOIN tblTimeSheet ON tblAccountDemographics.ID = tblTimeSheet.AccountId) ON tblClientDemographics.ID = tblTimeSheet.ClientID) ON tblEmployee.[Auto Number] = tblTimeSheet.EmployeeID
ORDER BY tblEmployee.[Employee Name], tblTimeSheet.Date, tblClientDemographics.[Client Name], tblAccountDemographics.[Account Name];I cut and pasted this directly from the database SQL view so I know this piece runs appropriately. Now I just need to code for the dates.
Thanks,
Leesha -
WSLeesha
AskWoody LoungerFinally!! I had tried your suggestion earlier but kept getting limited versions of the records with not all listed. When I’d take out the actual name links I’d get the entire databse. I made a few changes to properties (I’ve made so many that I don’t even remember what I’ve done at this point, and now its working!! Thanks so much for you patience. I have a feeling this won’t be the last post I make on this database!
Leesha
-
WSLeesha
AskWoody LoungerHere’s a shot of how tblTimesheets looks.
Leesha
-
WSLeesha
AskWoody LoungerGod I appreciate you quick replies. The rowsource data comes from tblTimesheets which no longer has ClientID, AccountID, and EmployeeID now in it as numeric values which lookback to the names in the tblClient, tblEmployee, and tblAccount so that the names show in the combo boxes on the form. I removed the actual Client Name, Employee Name, and Account Name from tblTimesheet after the referential links were set as per your instructions yesterday (thanks for the detail). Should I have kept these?
Thanks,
Leesha -
WSLeesha
AskWoody LoungerNext problem……………..I’m slowly, very slowly working through the form, query and report changes that are a result of the tblClient, tblAccount and tblEmployee ID changes I made for referential integrity. I’m stuck on list that when clicked on it would go to the line item for that row in the database. Now when the list opens, the ID numbers vs the actual names show. I’ve tried adding the associated name fields from the corresponding tables and although that helps, for some reason it limits the amount of data that shows up. There are no parameters placed on the query such as date range etc. When I run the actual query in design view it shows the name. It’s only in the list box view that only the numbers show. Is there a way for me to change this???
Thank you,
Alicia -
WSLeesha
AskWoody LoungerNope, the update query went fine. Not one error message and the I went back and checked the data and it was valid. To make matters worse, it only changes the the data in one line item at a time and it varies. It doesn’t go back and replace the ID number for every cell in the database. Sigh, gonna be a long day.
Thanks!
Leesha -
WSLeesha
AskWoody LoungerMorning!
The Account Name Field in tble Account has actually been modified to contai ID’s instead of names. I went back and rechecked all queries and found 2 that didn’t actually have links between the tables and thought that might of been it, and yet it is still happening. I’m not sure where to begin to look. I’m about ready to trash the whole database and rework it but the owner has sooooooooooooo much data in it!
Thank you
Leesha -
WSLeesha
AskWoody LoungerHi Hans,
Well, I followed your steps for all three tables (Client, Account, Employee) and the referential integrity is set and all the forms etc. changed and running fine. My ONLY issue is that in all three tables (client, account and employee)the name field changes to the ID number on a whim, only one at a time in each database. IE, if I’m running account related reports, the account name will change to the ID number that is associated with it. Any idea where that is coming from?
Leesha
-
WSLeesha
AskWoody LoungerWell, I’m a glutton for punishment! That’s what I get for helping a friend out!!! I appreciate the input and of course the perfectionist in me will make me fix it so I’ll be getting to work on it tonight.
Thanks!
Leesha -
WSLeesha
AskWoody LoungerI’ve attached the preview shot you requested.
Thanks,
Alicia -
WSLeesha
AskWoody LoungerMorning Hans!
I already did the steps you recommended multiple times. I’ve tried making the primary key the name vs the ID number and that doesn’t work either. I’ve never had this happen before so its stumped me to no end which was I thought maybe it had to do with the three name tables that the Timesheet table references, each having fields called ID. It doesn’t help that this is an already established database with tons of data in it (which of course I have an original saved of), vs one I’m developing from scratch. To make matters worse I’ve already set up multiple reports using your help from the other day to my post referencing using list boxes to open reports, so pulling the ID catagory will reduce me insanity!!! Ugh. Now what??
Leesha
![]() |
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
-
Clock missing above calendar in Windows 10 (Awaiting moderation)
by
WSCape Sand
1 minute ago -
The time has come for AI-generated art
by
Catherine Barrett
5 hours, 30 minutes ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
7 minutes ago -
23 and you
by
Max Stul Oppenheimer
5 hours, 32 minutes ago -
April’s deluge of patches
by
Susan Bradley
2 hours, 12 minutes ago -
April’s deluge of patches
by
Susan Bradley
5 hours, 33 minutes ago -
Windows 11 Windows Updater question
by
Tex265
13 hours, 44 minutes ago -
Key, Key, my kingdom for a Key!
by
RetiredGeek
20 hours, 39 minutes ago -
Registry Patches for Windows 10
by
Drcard:))
1 day, 1 hour ago -
Cannot get line length to NOT wrap in Outlining in Word 365
by
CWBillow
7 hours, 44 minutes ago -
DDU (Display Driver Uninstaller) updates
by
Alex5723
18 hours, 32 minutes ago -
Align objects on a OneNote page
by
CWBillow
1 day, 6 hours ago -
OneNote Send To button?
by
CWBillow
1 day, 7 hours ago -
WU help needed with “Some settings are managed by your organization”
by
Peobody
1 day, 15 hours ago -
No Newsletters since 27 January
by
rog7
1 day, 11 hours ago -
Linux Mint Debian Edition 7 gets OEM support, death of Ubuntu-based Mint ?
by
Alex5723
16 hours, 27 minutes ago -
Windows Update “Areca Technology Corporation – System – 6.20.0.41”
by
Bruce
15 hours, 7 minutes ago -
Google One Storage Questions
by
LHiggins
1 hour, 45 minutes ago -
Button Missing for Automatic Apps Updates
by
pmcjr6142
6 hours, 21 minutes ago -
Ancient SSD thinks it’s new
by
WSila
21 hours, 3 minutes ago -
Washington State lab testing provider exposed health data of 1.6 million people
by
Nibbled To Death By Ducks
2 days, 6 hours ago -
WinRE KB5057589 fake out
by
Susan Bradley
5 hours, 47 minutes ago -
The April 2025 Windows RE update might show as unsuccessful in Windows Update
by
Susan Bradley
1 day, 14 hours ago -
Firefox 137
by
Charlie
17 hours, 27 minutes ago -
Whisky, a popular Wine frontend for Mac gamers, is no more
by
Alex5723
2 days, 19 hours ago -
Windows 11 Insider Preview build 26120.3863 (24H2) released to BETA
by
joep517
2 days, 19 hours ago -
Windows 11 Insider Preview build 26200.5551 released to DEV
by
joep517
2 days, 19 hours ago -
New Windows 11 PC setup — can I start over in the middle to set up a local id?
by
ctRanger
1 day, 15 hours ago -
Windows 11 Insider Preview Build 26100.3902 (24H2) released to Release Preview
by
joep517
2 days, 22 hours ago -
Oracle kinda-sorta tells customers it was pwned
by
Nibbled To Death By Ducks
3 days, 4 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.