-
WSgbanks
AskWoody LoungerSeptember 18, 2008 at 1:19 am in reply to: data type mismatch error on date/time value (access 2003) #1126096Tried it but I still get the same error. It runs and then fails. It’s only when I do a group by statement or add any kind of parameter. If I don’t group by any feilds or andd amy parameters it runs and converts the format to a date/time value. I set the properties of the field in the query to date/time value..
SELECT AdminSum.[Admin ID], Count(AdminSum.[CBSR Appointment ID]) AS [CountOfCBSR Appointment ID], AdminSum.[Site ID], CDate(Nz([Appointment Date],#1/1/1900#)) AS AdminDate
FROM AdminSum
WHERE (((AdminSum.[Event Outcome]) Not Like “Candidate No-Show”))
GROUP BY AdminSum.[Admin ID], AdminSum.[Site ID], CDate(Nz([Appointment Date],#1/1/1900#)); -
WSgbanks
AskWoody LoungerThis is a question regarding an older post I made. I was wondering is it posible to add a parameter query do the field below. Use a between and statement to search between a date range. Any thoughts? Thanks..
Field: DateValue([Appointment Date])
Criteria: currently shows last 3 months data >=DateAdd(“m”,-3,Date())
New suggested criteria Between [enter date] and [enter date] Cant get to work…. -
WSgbanks
AskWoody LoungerThanks Hans. I got it now. A new morning breads a clearer mind.
-
WSgbanks
AskWoody LoungerSorry Hans I mistyped in my posting. I am using YDM not YMD. Can you still adivse? Thanks….
-
WSgbanks
AskWoody LoungerThat does work Hans but is there a way to show the number of transaction that were not late? I think thats what I really need. IN this case it would be 33957.
Thanks..Percentage on time Total Transactions Transactions on time
A1 99.99% A2 33960 A3 = X (in this case 33957) -
WSgbanks
AskWoody LoungerHans it got me close butt.. I think I I didn’t exlpain it right..
What I need is?
My query shows the site as 1234A I need all sites like 1234* This showed only 1234A when I ran it. SO we need the last character removed and show all sites like 1234*.. Make sense>? Thanks..
-
WSgbanks
AskWoody LoungerThat was it Hans. Thanks so much..
-
WSgbanks
AskWoody LoungerHans I ran into an issue when I tried to query using the code you gave me. It was working great when the data was like the successful format but I got an invalid procedure call when I tried to query the failed data. Not sure what is going on. Do I have to modify the parameters you gave me? I really appreciate your help. Thanks…
Successful:
1A-2_Class optional vs required
1A-2_Class optional vs required
1A-5_Study Abroad
1A-5_Study AbroadFailed
07A-5_Power Failure
07A-5_Power Failure
07A-1_Surprise Accomplishment
07A-1_Surprise Accomplishment
07A-2_Second Language Requirement
07A-2_Second Language Requirement
07A-3_Student Art Gallery
07A-3_Student Art Gallery
07A-6-Empathy in Babies
07A-6-Empathy in Babies
07A-4_Entertainment Merchandising
07A-4_Entertainment Merchandising -
WSgbanks
AskWoody LoungerHans
Thanks for the help. This works for the most part but when I have any appointment date/time like 06/06/2008 12:00:00 PM it will not show in the query. I also found out that the data in my linked spread sheet is not in date/time format. It’s stored as a text field and I can’t change the data source. Is the a way to modify the date field to show the records with ending in 12:00:00 PM? Thanks…. -
WSgbanks
AskWoody LoungerI got the mid function to working great to pull out the number 5 in the field below. The problem now is I have found that the numeric value is not always in postion 5. They told me it was but I as I looked at some older data I found that this is not the case. The only constant is that the numeric value is always between the – and the _. That being the only constant is there a way I can pull that numeric value out. I really appreciate the help. Thanks..
Using: PromptName: Mid([Prompt name],5,1) I receive the value of 5 in my query….
08V-1_Childhood Activity
-
WSgbanks
AskWoody LoungerYes Pat it is always a single digit 1 through 6…
-
WSgbanks
AskWoody LoungerI got it figured out. I had to change directories in the .bat file. Something stupid on my part. Thanks again..
-
WSgbanks
AskWoody LoungerUsing the Function below to call a batch file which will run an FTP script I wrote. The ftp batch file and script run great when I run the batch file from my shared f drive but when I use the shell command below it looks to run the ftp script from my local C drive my documents folder which is where I stored the ftp batch and script before I moved them to my f drive. Do I somehow have to point to the f drive in the function below or in the script or batch file? I’m clueless. Thanks…
p.s. I’m calling the function using run code in a macro.
Function CallFTPRun()
On Error GoTo CallFTPRun_ErrDim retval
retval = Shell(“F:FTPFTPFeed.bat”, vbMaximizedFocus)CallFTPRun_Exit:
Exit FunctionCallFTPRun_Err:
MsgBox Error$
Resume CallFTPRun_ExitEnd Function
-
WSgbanks
AskWoody Loungeryes. sorry..
-
WSgbanks
AskWoody LoungerI think it group them right but the dates displayed like this 39088. Any thoughts?
![]() |
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
10 minutes ago -
My top ten underappreciated features in Office
by
Peter Deegan
36 minutes ago -
WAU Manager — It’s your computer, you are in charge!
by
Deanna McElveen
13 minutes ago -
Misbehaving devices
by
Susan Bradley
1 hour, 16 minutes ago -
.NET 8.0 Desktop Runtime (v8.0.16) – Windows x86 Installer
by
WSmeyerbos
14 hours, 22 minutes ago -
Neowin poll : What do you plan to do on Windows 10 EOS
by
Alex5723
10 hours, 6 minutes ago -
May 31, 2025—KB5062170 (OS Builds 22621.5415 and 22631.5415 Out-of-band
by
Alex5723
12 hours, 56 minutes ago -
Discover the Best AI Tools for Everything
by
Alex5723
13 hours, 5 minutes ago -
Edge Seems To Be Gaining Weight
by
bbearren
3 hours, 14 minutes ago -
Rufus is available from the MSFT Store
by
PL1
11 hours, 17 minutes ago -
Microsoft : Ending USB-C® Port Confusion
by
Alex5723
1 day, 14 hours ago -
KB5061768 update for Intel vPro processor
by
drmark
20 hours, 32 minutes ago -
Outlook 365 classic has exhausted all shared resources
by
drmark
16 hours, 44 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, 11 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, 13 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, 17 hours ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
3 days, 5 hours ago -
Enabling Secureboot
by
ITguy
3 days, 12 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, 13 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
4 days, 16 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.