-
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
-
Upgrade from Windows 10 to 11
by
Holdsworth8
56 minutes ago -
Microsoft : AI-powered deception: Emerging fraud threats and countermeasures
by
Alex5723
2 hours, 19 minutes ago -
0patch
by
WSjcgc50
1 hour, 39 minutes ago -
Devices might encounter blue screen exception with the recent Windows updates
by
Susan Bradley
1 hour, 26 minutes ago -
Windows 11 Insider Preview Build 22631.5261 (23H2) released to Release Preview
by
joep517
5 hours, 19 minutes ago -
Problem opening image attachments
by
RobertG
6 hours, 53 minutes ago -
advice for setting up a new windows computer
by
routtco1001
21 hours, 38 minutes ago -
It’s Identity Theft Day!
by
Susan Bradley
1 hour, 55 minutes ago -
Android 15 require minimum 32GB of storage
by
Alex5723
1 day, 2 hours ago -
Mac Mini 2018, iPhone 6s 2015 Are Now Vintage
by
Alex5723
1 day, 2 hours ago -
Hertz says hackers stole customer credit card and driver’s license data
by
Alex5723
1 day, 3 hours ago -
Firefox became sluggish
by
Rick Corbett
1 day ago -
Windows 10 Build 19045.5794 (22H2) to Release Preview Channel
by
joep517
1 day, 7 hours ago -
Windows 11 Insider Preview Build 22635.5235 (23H2) released to BETA
by
joep517
1 day, 7 hours ago -
A Funny Thing Happened on the Way to the Forum
by
bbearren
4 hours, 46 minutes ago -
Download speeds only 0.3Mbps after 24H2 upgrade on WiFi and Ethernet
by
John
1 hour, 45 minutes ago -
T-Mobile 5G Wireless Internet
by
WSmmi16
5 hours, 26 minutes ago -
Clock missing above calendar in Windows 10
by
WSCape Sand
6 hours, 38 minutes ago -
Formula to Calculate Q1, Q2, Q3, or Q4 of the Year?
by
WSJon5
1 day, 22 hours ago -
The time has come for AI-generated art
by
Catherine Barrett
1 day, 2 hours ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
1 day, 12 hours ago -
23 and you
by
Max Stul Oppenheimer
1 day, 19 hours ago -
April’s deluge of patches
by
Susan Bradley
4 hours, 34 minutes ago -
Windows 11 Windows Updater question
by
Tex265
34 minutes ago -
Key, Key, my kingdom for a Key!
by
RetiredGeek
3 days, 4 hours ago -
Registry Patches for Windows 10
by
Drcard:))
3 days, 8 hours ago -
Cannot get line length to NOT wrap in Outlining in Word 365
by
CWBillow
2 days, 15 hours ago -
DDU (Display Driver Uninstaller) updates
by
Alex5723
2 days ago -
Align objects on a OneNote page
by
CWBillow
3 days, 14 hours ago -
OneNote Send To button?
by
CWBillow
3 days, 14 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.