-
WSJulesG
AskWoody LoungerMark,
not a solution for your specific problem, but you might get a clue from Access Archon column 193. I successfully used this for single address display, in the UK. Are you fixed on Google maps? There are commercial packages that will do what you want (e.g. Microsoft’s own MapPoint). Integrating non-Microsoft products with Access may be a problem.
Regards,
Jules
-
WSJulesG
AskWoody LoungerMicrosoft says: When a database is deleted, the files and their data are deleted from the disk on the server. When a database is deleted, it is permanently removed and cannot be retrieved without using a previous backup.
http://msdn.microsoft.com/en-us/library/ms189278.aspx
There are, of course, utilities that can recover ‘deleted’ files, and the only way to be sure would be to overwrite the area on the disk(s) several times with rubbish.
Look at the efforts the Government has taken to destroy the National Identity Register:
http://www.computerweekly.com/Articles/2011/02/10/245363/ID-card-database-is-destroyed.htm
Regards,
Jules
-
WSJulesG
AskWoody LoungerI stand corrected!
Jules
-
WSJulesG
AskWoody LoungerSorry, I cannot think of a way to do this in a query. Unless others can suggest a better way, you’re looking at a simple bit of code.
1. Identify a recordset to hold the result (e.g. a table, remember to empty it before starting)
2. Open a recordset to show the source data.
3. Go to the first (only?) record of your source data, and the first field.
4. Read the value.
5. Append the field name and the value to the temporary table (remember to update if using a recordset, but I’d use an Append SQL statement)
6. Move to the second field, and repeat steps 4 and 5. Continue until you run out of fields.Close your recordset(s), and open the pie chart which is based on the temporary table.
Hope this helps,
Jules
-
WSJulesG
AskWoody LoungerCorey,
sorry, I’m having trouble getting my head around the result you are aiming for. I can offer a quick suggestion, though.
Several of your fields are actually totals subqueries, e.g. 3MonthRank: (Select count(*) from Wholesale_Group_1_export_tbl as B where Wholesale_Group_1_export_tbl.[3MonthTotalRecords#] < B.[3MonthTotalRecords#]). You do not have a primary key on the table, but I assume that OMNI# holds unique values.
Why not have this as a separate query grouped by OMNI#, and pull in the result? You could do the same for the other subqueries. It is easier to debug when steps are broken down.
This might be a first step to a solution.
Regards,
Jules
-
WSJulesG
AskWoody LoungerCorey,
me again! There are several options, and using the properties of the field is probably the least flexible. You could use a Round() function, e.g. Round([fieldname],1). Or, you could use the Format() function. I’d suggest Round() for greater accuracy.
If you want to look at Format(), check out the VBA help rather than the Access help – open a code window and then open help.
Below is an extract from the VBA help.
Regards,
Jules
Different Formats for Different Numeric Values (Format Function)
A user-defined format expression for numbers can have from one to four sections separated by semicolons. If the format argument contains one of the named numeric formats, only one section is allowed.
If you use The result is
One section only The format expression applies to all values.
Two sections The first section applies to positive values and zeros, the second to negative values.
Three sections The first section applies to positive values, the second to negative values, and the third to zeros.
Four sections The first section applies to positive values, the second to negative values, the third to zeros, and the fourth to Null values.The following example has two sections: the first defines the format for positive values and zeros; the second section defines the format for negative values.
“$#,##0;($#,##0)”
If you include semicolons with nothing between them, the missing section is printed using the format of the positive value. For example, the following format displays positive and negative values using the format in the first section and displays “Zero” if the value is zero.
“$#,##0;;Zero”
-
WSJulesG
AskWoody LoungerHi!
have you considered a Crosstab query?
Regards,
Jules
-
WSJulesG
AskWoody LoungerHi!
When setting up the connection, the ‘select tables’ dialog box has a box for ‘save password’. Tick the box. The password is then saved along with the other connection details.
Regards,
Jules
-
WSJulesG
AskWoody LoungerDave,
there are many possible solutions. Probably the simplest is to pass the ID as part of a Where parameter. If you look at the options for Docmd.OpenReport, you will see one is a WhereCondition. Fill this with a string such as “[ID]=29”, and it should work.
Regards,
Jules
-
WSJulesG
AskWoody LoungerNiven,
the traditional way to ‘find unmatched’ is to link the two tables with an equals join, then set a criteria on the second table primary key of ‘is null’. This returns records from the first table without a matching record in the second table. Cominig from a Microsoft Access background with a smattering of SQL Server, this is the approach I’d take. The ‘not in (sql statement)’ has its uses but at first glance I would not have said this was one of them. By grouping and using a max(), you seem to be muddying the waters.
Got to rush, hope this helps a bit,
Jules
-
WSJulesG
AskWoody LoungerOops! While cycling I realised I had omitted a key line. You need to set strURL to the address of the web site, before using the variable.
Sorry about that, but I expect everyone spotted the (non-deliberate) mistake.
Jules
-
WSJulesG
AskWoody LoungerHi Luke!
I think you will need to drop an ocxWebBrowser control onto your form. Then set the URL in code (based on code by Helen Feddema) :
On Error GoTo ErrorHandler
dim appBrowser As Object
dim strURL as stringSet appBrowser = Me![ocxWebBrowser]
Me![ocxWebBrowser].Navigate strURLErrorHandlerExit:
Set appBrowser = Nothing
Exit SubErrorHandler:
MsgBox “Error No: ” & Err.Number _
& ” in Form_Current procedure; ” _
& “Description: ” & Err.Description
Resume ErrorHandlerExitRegards,
Jules
-
WSJulesG
AskWoody LoungerHi!
It’s not clear if the employeee is entitled to overtime based on daily or weekly rates, e.g. does overtime worked on a Sunday get paid at a greater rate that overtime worked on a Tuesday. I have assumed different rates.
Try thinking of this problem in spreadsheet terms. Entries would be grouped per week, and the hours worked totalled. If the total hours for the week equals or exceeds 40, then for each day of that week one column would show the hours worked, the next would show the normal hours for that day, a third would show the difference (Overtime). This could then be multiplied by the appropriate overtime rate to give an amount due.All of this can be worked out using queries, and Append/Update queries to write the results to a table.
This is very simplistic, and in real life you would probably group the normal weekday hours together rather than show them by day.
But….. there are a myriad of payroll systems out there, that can handle these calculations. Might you be better using an off-the-shelf solution rather than reinventing the wheel?
Regards,
Jules
-
WSJulesG
AskWoody LoungerTom,
you want a simple function along the lines of
if curdate =>cdate(“01/07/” & year(curdate)) then
[indent]Return year(curdate)+1[/indent]
else
[indent]return year(curdate)[/indent]
end if
I am sure you can tidy this up and get the syntax right! Could even be done with an IIF().
Hope this helps,
Jules
-
WSJulesG
AskWoody LoungerPete,
for someone new to access, there are several great sites around (including, of course, this one!). You could do worse than look at Access Archon; Item 6 may be relevant.
If you want to keep it really simple, in the After Update of the combo box, use:
[indent]If nz(cmbWhatever,0) 0 then
[indent][/indent][indent][/indent]targetcontrolname=DLookup(x,y,z).
end if[/indent]
Dlookup is slow, but relatively easy to use. Check the Help. Just remember that speech marks are needed.
Or, if the value really is predefined and will not change, replace the DLookup with a Select Case statement.
[indent]Select Case nz(cmbWhatever,0)
Case x
[indent][/indent]targetcontrolname=xxx
Case y
[indent][/indent]targetcontrolname=xyz
Case Else
[indent][/indent]targetcontrolname=null
End Select[/indent]
Regards,
Jules
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
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
-
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
3 hours, 12 minutes ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
3 hours, 38 minutes ago -
Asking Again here (New User and Fast change only backups)
by
thymej
14 hours, 33 minutes ago -
How much I spent on the Mac mini
by
Will Fastie
4 hours ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
6 hours, 21 minutes ago -
Spring cleanup — 2025
by
Deanna McElveen
20 hours, 25 minutes ago -
Setting up Windows 11
by
Susan Bradley
4 hours, 1 minute ago -
VLC Introduces Cutting-Edge AI Subtitling and Translation Capabilities
by
Alex5723
15 hours, 53 minutes ago -
Powershell version?
by
CWBillow
16 hours, 46 minutes ago -
SendTom Toys
by
CWBillow
1 hour, 2 minutes ago -
Add shortcut to taskbar?
by
CWBillow
20 hours, 41 minutes ago -
Sycophancy in GPT-4o: What happened
by
Alex5723
1 day, 13 hours ago -
How can I install Skype on Windows 7?
by
Help
1 day, 11 hours ago -
Logitech MK850 Keyboard issues
by
Rush2112
18 hours, 41 minutes ago -
We live in a simulation
by
Alex5723
2 days, 3 hours ago -
Netplwiz not working
by
RetiredGeek
1 day, 13 hours ago -
Windows 11 24H2 is broadly available
by
Alex5723
2 days, 15 hours ago -
Microsoft is killing Authenticator
by
Alex5723
1 day, 3 hours ago -
Downloads folder location
by
CWBillow
2 days, 22 hours ago -
Remove a User from Login screen
by
CWBillow
1 day, 17 hours ago -
TikTok fined €530 million for sending European user data to China
by
Nibbled To Death By Ducks
2 days, 13 hours ago -
Microsoft Speech Recognition Service Error Code 1002
by
stanhutchings
2 days, 13 hours ago -
Is it a bug or is it expected?
by
Susan Bradley
15 hours, 20 minutes ago -
Image for Windows TBwinRE image not enough space on target location
by
bobolink
2 days, 12 hours ago -
Start menu jump lists for some apps might not work as expected on Windows 10
by
Susan Bradley
1 day, 11 hours ago -
Malicious Go Modules disk-wiping malware
by
Alex5723
3 days, 2 hours ago -
Multiple Partitions?
by
CWBillow
3 days, 2 hours ago -
World Passkey Day 2025
by
Alex5723
35 minutes ago -
Add serial device in Windows 11
by
Theodore Dawson
4 days, 11 hours ago -
Windows 11 users reportedly losing data due forced BitLocker encryption
by
Alex5723
2 days, 12 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.