-
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.
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
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
-
Who knows what?
by
Will Fastie
6 minutes ago -
My top ten underappreciated features in Office
by
Peter Deegan
15 minutes ago -
WAU Manager — It’s your computer, you are in charge!
by
Deanna McElveen
53 minutes ago -
Misbehaving devices
by
Susan Bradley
55 minutes ago -
.NET 8.0 Desktop Runtime (v8.0.16) – Windows x86 Installer
by
WSmeyerbos
14 hours, 1 minute ago -
Neowin poll : What do you plan to do on Windows 10 EOS
by
Alex5723
9 hours, 44 minutes ago -
May 31, 2025—KB5062170 (OS Builds 22621.5415 and 22631.5415 Out-of-band
by
Alex5723
12 hours, 35 minutes ago -
Discover the Best AI Tools for Everything
by
Alex5723
12 hours, 44 minutes ago -
Edge Seems To Be Gaining Weight
by
bbearren
2 hours, 53 minutes ago -
Rufus is available from the MSFT Store
by
PL1
10 hours, 55 minutes ago -
Microsoft : Ending USB-C® Port Confusion
by
Alex5723
1 day, 13 hours ago -
KB5061768 update for Intel vPro processor
by
drmark
20 hours, 11 minutes ago -
Outlook 365 classic has exhausted all shared resources
by
drmark
16 hours, 22 minutes ago -
My Simple Word 2010 Macro Is Not Working
by
mbennett555
1 day, 9 hours ago -
Office gets current release
by
Susan Bradley
1 day, 12 hours ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
3 days, 2 hours ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
2 days, 10 hours ago -
Stop the OneDrive defaults
by
CWBillow
3 days, 3 hours ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
3 days, 12 hours ago -
X Suspends Encrypted DMs
by
Alex5723
3 days, 15 hours ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
3 days, 15 hours ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
3 days, 16 hours ago -
OpenAI model sabotages shutdown code
by
Cybertooth
3 days, 16 hours ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
3 days, 4 hours ago -
Enabling Secureboot
by
ITguy
3 days, 11 hours ago -
Windows hosting exposes additional bugs
by
Susan Bradley
4 days ago -
No more rounded corners??
by
CWBillow
3 days, 20 hours ago -
Android 15 and IPV6
by
Win7and10
3 days, 10 hours ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
4 days, 12 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
4 days, 15 hours ago
Recent blog posts
Key Links
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
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.