-
WSaccdb
AskWoody LoungerTry – DMax(“CLng([Check])”, “tbl_Check”)
-
WSaccdb
AskWoody LoungerAugust 14, 2002 at 12:44 pm in reply to: Quotes and Apostrophes in SQL statements (Access97) #608426Thanks Tom and Hans
-
WSaccdb
AskWoody LoungerAugust 13, 2002 at 12:54 pm in reply to: Quotes and Apostrophes in SQL statements (Access97) #608126Tom I tried use the Replace function you suggested,
Replace(strMySearchCriteria, chr(34), chr(34) & chr(34),1)I received the following error –
Undefined function ‘Replace’ in expression.
Is this function available in Access 97?
-
WSaccdb
AskWoody LoungerThanks Mark.
SQL2 isn’t a saved query but you reply gave me an idea.
I replaced the SELECT statement from SQL1 with the SQL2 SELECT statement and the correct results were returned.
INSERT INTO Table2 (Field1, Field2, Field3, Field4, Field5, Field6, Field7, Field8, Field)
SELECT Table1.FIELD1, Table1.FIELD2, Sum(Table1.FIELD3) AS SumOfFIELD3, Sum(Table1.FIELD4) AS
SumOfFIELD4, Sum(Table1.FIELD5) AS SumOfFIELD5, Table1.FIELD6, Table1.FIELD7, Table1.FIELD8,
Table1.FIELD9
FROM Table1Thanks again.
-
WSaccdb
AskWoody LoungerHi Mike,
Does the date field contain the time also? You may have to add a +1 to your ending date.
-
WSaccdb
AskWoody LoungerTry changing the Unique Records in the query properties from No to Yes.
-
WSaccdb
AskWoody LoungerOkay, it’s Friday. I’m going home.
-
WSaccdb
AskWoody LoungerI think this is what you are after.
Create a table with the days of the week listed.
My Table3. One Field. [Weekdy]
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
SundayTable 2 has the fields [workdy] and [Employee]
[workdy] [Employee]
Monday employee1
Sunday employee2
Sunday employee1
Tuesday employee1Here is the SQL:
SELECT Count(Table2.workdy) AS CountOfworkdy, Table2.workdy
FROM Table3 INNER JOIN Table2 ON Table3.weekdy = Table2.workdy
GROUP BY Table2.workdy;Results:
[CountofWorkdy] [Workdy]
1 Monday
2 Sunday
1 TuesdayHTH
-
WSaccdb
AskWoody LoungerHi
Do you share the DB with anyone else?
-
WSaccdb
AskWoody LoungerTry here:
http://home.wanadoo.nl/njh/download_tools97.htm%5B/url%5D
Edited by Charlotte to activate link
-
WSaccdb
AskWoody LoungerThis may not be applicable but, depending how far and how deep the litigation may go
Visual/Access Basic Is Both a Compiler and an Interpreter (Q109382)
-
WSaccdb
AskWoody LoungerThis may not be the best way to achieve this but it will give you the chance to step through one of several processes to see how you are gathering data and produce your report. If anyone has a better idea please feel free to jump in here.
Start backwards. Design a blank report with all the fields you will need. This will give you a picture to work from.
Create two tables. Select a specialist and Append all his/her data for that week to the 1st table.
Build the 2nd table from the fields on your report example.
If you are familiar with VBA you can open recordsets based on queries from the 1st table and place that data onto the 2nd table.
If you are unfamiliar with VBA the same thing can be accomplished with the use of queries to pull, and total data from the 1st table. Using forms based on the queries, cut and paste data onto the 2nd table.
Base your report on the 2nd table.
Once you have everything in place you can create a macro to automate the process.
HTH
-
WSaccdb
AskWoody LoungerYou are not mixing apples and oranges. To keep it simple you could use the report wizard based on your query.
To get the total jobs without a completion date you could user your (Between #6/10/02# and #6/14/02#) in the criteria under Date Job Assigned. You will also place in the criteria under the Date Completed field (Is Null) (Is Null is without the parentheses.) This will pull all the records without a completion date. Save the query. Run the Report wizard based on the query.
The great thing about the Report wizard is that it can do sorting, math functions and summarize data.
You could base some of your other reports off the same query but with different criteria.
HTH
-
WSaccdb
AskWoody LoungerEvery database created in Access has an Admin group and an Admin user. If you don’t remove permissions from the Admin user anyone with Access can open your database. Don’t forget to make yourself a member of the Admin group.
-
WSaccdb
AskWoody LoungerThere is all kinds of other fun stuff that needs to be done to secure your database. Stuff like after creating the .mdw creating the database under the new .mdw. Joining the Admins group. Passwords. Removing permissions from the Admin user ONLY after you have joined the Admins group.
Go to ftp://ftp.microsoft.com/softlib/mslfiles/secfaq.exe and download the Security Faq. It details Access security.
Also, don’t make the mistake of replacing the standard system.mdw on your machine found in /windows/system or in WinNt/system with the secured one or ALL your Access apps on that machine will require you to logon. Put it elsewhere and preferably call it somethingelse.mdw
Practice on a copy of your original database first. I locked myself out of a couple of databases before I got a handle on Access security.
![]() |
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
-
Where’s the cache today?
by
Up2you2
2 hours, 14 minutes ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
5 hours, 16 minutes ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
5 hours, 37 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
10 hours, 17 minutes ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
15 hours, 25 minutes ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
15 hours, 31 minutes ago -
regarding april update and may update
by
heybengbeng
17 hours, 1 minute ago -
MS Passkey
by
pmruzicka
21 minutes ago -
Can’t make Opera my default browser
by
bmeacham
1 day ago -
*Some settings are managed by your organization
by
rlowe44
11 hours, 24 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
23 hours, 35 minutes ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
1 day, 19 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
2 days, 4 hours ago -
AI slop
by
Susan Bradley
18 hours, 23 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
2 days, 5 hours ago -
Two blank icons
by
CR2
17 hours, 18 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
2 days, 14 hours ago -
End of 10
by
Alex5723
2 days, 17 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
1 day, 15 hours ago -
test post
by
gtd12345
2 days, 23 hours ago -
Privacy and the Real ID
by
Susan Bradley
2 days, 13 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
15 hours, 37 minutes ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
3 days, 3 hours ago -
Upgrading from Win 10
by
WSjcgc50
1 day, 15 hours ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
1 day, 18 hours ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
3 days, 19 hours ago -
The story of Windows Longhorn
by
Cybertooth
3 days, 6 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
3 days, 21 hours ago -
Are manuals extinct?
by
Susan Bradley
21 hours, 30 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
4 days, 6 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.