-
WStaweller
AskWoody LoungerOh boy! The only thing that may save this is that there are infrequent updates to the data, only by 2 or 3 people. The database will be used mostly by users searching the data and the number of records is unlikely to exceed 2000 records for the next decade.
Would an application spread over three network drives be a good candidate for SQL server?
I really like Access, but the conversion to new versions is really a pain.
-
WStaweller
AskWoody LoungerI read some of the articles on replication on trigeminal.com.
My application is to use an Access97 backend for the data (all the tables) and Access 97, 2000, & XP frontends.
I plan on using a button on the startup form to replicate, two way replication, the Master and two replicas.
Will I have problems in replication with this scenario?
-
WStaweller
AskWoody LoungerThank you for your response. I have bookmarked the page and will check it out.
The problem was that I had typos in the address. -
WStaweller
AskWoody LoungerYes, that works. All I needed was another “” in the first address. I also found an error in the second address, the file extension was “md” instead of “mdb.
I tested it and it worked!
Thank you very much.
-
WStaweller
AskWoody LoungerThank you once again Hans. I had forgotton that I had put that invisible text box in the header.
-
WStaweller
AskWoody LoungerI tried another approach. I created buttons for each Skill field and put SQL code behind it.
Each Skill field is a Checkbox. I repeated the code for each skill field.
For example for Asbestos Removal.Private Sub cmdAsbestosRemoval_Click()
Dim strSQL As String
strSQL = “SELECT * FROM qryEngineersReview WHERE qryEngineersReview.AsbestosRemoval = TRUE”
Me.Form.RecordSource = strSQLEnd Sub
Then I created a button to clear the filter.
Private Sub cmdRemoveSkillFilter_Click()Dim strSQL As String
strSQL = “SELECT * FROM qryEngineersReview”
Me.Form.RecordSource = strSQLEnd Sub
Thank you for your input.
-
WStaweller
AskWoody LoungerSorry for the slow response, but I have been working on some other things.
The Skill boxes denote if a Contractor has that skill. I want for users to be able to filter with buttons for the skill that they are interested in.
I will try to implement your suggestions and get back with my solution.
-
WStaweller
AskWoody LoungerThis application will be used by many users outside the department, thus a button(s) would be useful.
I had a problem with a user the other day that did not know how to copy a file and they are a long time computer user.
Trying to teach many users would be burdensome and ongoing as personnel are changing frequently.Thus I would like to do it with VBA.
-
WStaweller
AskWoody LoungerYahoo! That did the trick. Thank you very much. I was looking in the wrong place.
-
WStaweller
AskWoody LoungerThank you, here is the zipped file.
-
WStaweller
AskWoody LoungerI inserted the lines as instructed and I still get #Error.
Function GetWorkDays(ByVal StartDate As Variant, _
ByVal EndDate As Variant, _
ByRef CountHolidays As Boolean) As LongDim lngWeeks As Long
Dim tmpDate As Date
Dim intDays As IntegerIf IsNull(StartDate) Or IsNull(EndDate) Then
GetWorkDays = 0
Exit Function
End IflngWeeks = DateDiff(“w”, StartDate, EndDate)
-
WStaweller
AskWoody LoungerThank you for your response. I inserted the code as follows. I am still receiving the #Error when StartDate or EndDate do not have entries in the table.
I tried inserting the code in different places. It is interesting that the code you used is identical to some code I tried earlier except for the line, EXIT FUNCTION.Function GetWorkDays(ByVal StartDate As Variant, _
ByVal EndDate As Variant, _
ByRef CountHolidays As Boolean) As LongDim lngWeeks As Long
Dim tmpDate As Date
Dim intDays As IntegerlngWeeks = DateDiff(“w”, StartDate, EndDate)
tmpDate = DateAdd(“ww”, lngWeeks, StartDate)
intDays = 0If IsNull(StartDate) Or IsNull(EndDate) Then
GetWorkDays = 0
Exit Function
End IfDo While tmpDate <= EndDate
'The code continues, see orginal posting for the whole code. -
WStaweller
AskWoody LoungerHans, I have declared the values as Variants and have tried many permutations of code to get this function to return zero (0) days when either or both the StartDate & EndDate are missing.
I need your help as I have been banging my head for some time. I also tried setting all variables to Variant type. I have tried IsNull() and IsDate() with If statements.Function GetWorkDays(ByVal StartDate As Variant, _
ByVal EndDate As Variant, _
ByRef CountHolidays As Boolean) As LongDim lngWeeks As Long
Dim tmpDate As Date
Dim intDays As IntegerlngWeeks = DateDiff(“w”, StartDate, EndDate)
tmpDate = DateAdd(“ww”, lngWeeks, StartDate)
intDays = 0Do While tmpDate <= EndDate
If Weekday(tmpDate) vbSunday And Weekday(tmpDate) vbSaturday Then
intDays = intDays + 1
End If
tmpDate = DateAdd(“d”, 1, tmpDate)
LoopIf CountHolidays = True Then
GetWorkDays = lngWeeks * 5 + intDays – GetHolidayCount(StartDate, EndDate)
Else
GetWorkDays = lngWeeks * 5 + intDays
End IfEnd Function
-
WStaweller
AskWoody LoungerI inserted the following line after (see code in start of thread).
‘Find the first matching record.
TempRecSet.FindFirst LookFor
DoCmd.RunCommand acCmdRecordsGoToFirst ‘This is the line that I inserted.And it works great! Thank you once again Hans.
-
WStaweller
AskWoody LoungerI will try it and get back to you later.
![]() |
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
-
Thunderbird release notes for 128 esr have disappeared
by
EricB
1 hour, 58 minutes ago -
CISA mutes own website, shifts routine cyber alerts to X, RSS, email
by
Nibbled To Death By Ducks
2 hours, 26 minutes ago -
Apple releases 18.5
by
Susan Bradley
2 hours, 45 minutes ago -
Fedora Linux 40 will go end of life for updates and support on 2025-05-13.
by
Alex5723
3 hours, 52 minutes ago -
How a new type of AI is helping police skirt facial recognition bans
by
Alex5723
4 hours, 30 minutes ago -
Windows 7 ISO /Windows 10 ISO
by
ECWS
11 hours, 26 minutes ago -
No HP software folders
by
fpefpe
12 hours, 11 minutes ago -
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
4 hours, 24 minutes ago -
Stay connected anywhere
by
Peter Deegan
17 hours, 34 minutes ago -
Copilot, under the table
by
Will Fastie
8 hours, 47 minutes ago -
The Windows experience
by
Will Fastie
23 hours, 48 minutes ago -
A tale of two operating systems
by
Susan Bradley
14 hours, 44 minutes ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
1 day, 5 hours ago -
Where’s the cache today?
by
Up2you2
1 day, 20 hours ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
1 day, 13 hours ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
13 hours, 34 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
1 day, 21 hours ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
2 days, 13 hours ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
2 days, 13 hours ago -
regarding april update and may update
by
heybengbeng
2 days, 15 hours ago -
MS Passkey
by
pmruzicka
1 day, 17 hours ago -
Can’t make Opera my default browser
by
bmeacham
2 days, 22 hours ago -
*Some settings are managed by your organization
by
rlowe44
2 days, 9 hours ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
2 days, 21 hours ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
3 days, 17 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
4 days, 2 hours ago -
AI slop
by
Susan Bradley
1 day, 20 hours ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
4 days, 3 hours ago -
Two blank icons
by
CR2
1 day, 12 hours ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 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.