-
WSaap2
AskWoody LoungerIn addition to local web servers for development, we have SourceSafe on the same machine as the production Web Server. Do you see a problem having both on the same WinXP Pro box? The website is an internal departmental site to be used by about a dozen people. Any reason to put the web server on a separate box? (trying to work on the cheap here.)
Thanks,
-
WSaap2
AskWoody LoungerThanks Charlotte. We installed Visual Source Safe and believe this to be a safer way for multiple developers to work on projects.
Best Regards, -
WSaap2
AskWoody LoungerI suspect, but am not sure, that the problem may be the rowsource of your list box. The rowsource for the listbox on my form has two text fields, [CLIENT], [Client Name] The users selections are put into a text string and the report that is generated is filtered by a text string. If you are trying to build the WHERE clause with something other than text, you need to modify the SelectClients() function slightly to accomodate the data type of your bound field.
Hope this helps. -
WSaap2
AskWoody LoungerI suspect, but am not sure, that the problem may be the rowsource of your list box. The rowsource for the listbox on my form has two text fields, [CLIENT], [Client Name] The users selections are put into a text string and the report that is generated is filtered by a text string. If you are trying to build the WHERE clause with something other than text, you need to modify the SelectClients() function slightly to accomodate the data type of your bound field.
Hope this helps. -
WSaap2
AskWoody LoungerThere is a button on my form “cmdOpenReport” that does this:
Private Sub cmdOpenReport_Click()
On Error Resume Nextdim mstrRpt as string
mstrRpt = “rptClientInventorySummary”DoCmd.OpenReport mstrRpt, acViewPreview, , SelectedClients()
End Sub
The report gets its data from the query “qryClientInventory” that selects, among other things, Client Number ([CLIENT]), Client Name, Inventory details…
The public function SelectedClients() returns a WHERE clause used in the DoCmd.OpenReport mstrRpt statement above. The WHERE clause looks like this
“[CLIENT]= ‘11124’ Or [CLIENT]= ‘11128’ Or [CLIENT]= ‘11134’”
SelectedClients() returns data type string. -
WSaap2
AskWoody LoungerThere is a button on my form “cmdOpenReport” that does this:
Private Sub cmdOpenReport_Click()
On Error Resume Nextdim mstrRpt as string
mstrRpt = “rptClientInventorySummary”DoCmd.OpenReport mstrRpt, acViewPreview, , SelectedClients()
End Sub
The report gets its data from the query “qryClientInventory” that selects, among other things, Client Number ([CLIENT]), Client Name, Inventory details…
The public function SelectedClients() returns a WHERE clause used in the DoCmd.OpenReport mstrRpt statement above. The WHERE clause looks like this
“[CLIENT]= ‘11124’ Or [CLIENT]= ‘11128’ Or [CLIENT]= ‘11134’”
SelectedClients() returns data type string. -
WSaap2
AskWoody LoungerI have a multiselect listbox “lstSelectClients” that lists each of our clients. The user can select multiple clients from this list. There is an “After Update” event on this list box that calls this procedure:
””””””””””””””””””””””””””””””””””””””””””””””””””””””””””’
‘for any form where users need to select multiple clients from a multiselect list box. This functions returns a WHERE statement that can be used in queries, report filters, or other procedures.‘returned string looks like this:
‘ “[CLIENT]= ‘11124’ Or [CLIENT]= ‘11128’ Or [CLIENT]= ‘11134’”
‘
‘
Public Function SelectedClients() As String
‘create filter for selected records
Dim ctlSource As Control
Dim strItems As String
Dim intCurrentRow As Integer
Dim intStringLength As Integer
Dim strAster As String
Dim strQuote As String
strQuote = Chr(34)
strAster = Chr(42)
‘put your form name here.
Set ctlSource = Forms![frm_Your_Form_Here]!lstSelectClients‘evaluate number of items on list to make the filter query
‘processes more than one item
For intCurrentRow = 0 To ctlSource.ListCount – 1
If ctlSource.Selected(intCurrentRow) Then
strItems = strItems & “[CLIENT]= ” & “‘” & ctlSource.Column(0, _
intCurrentRow) & “‘” & ” Or ”
End If
Next intCurrentRow‘remove the last “Or” from the search string
intStringLength = Len(strItems)If intStringLength = 0 Then
‘If user does not select any clients from the list, the WHERE clause returns a wildcard
strItems = “[CLIENT] Like ” & “‘” & strAster & “‘”
Else
strItems = Left(strItems, (intStringLength – 4))
End If
‘pass value to function
SelectedClients = strItems‘Reset destination control’s RowSource property.
Set ctlSource = NothingEnd Function
””””””””””””””””””””””””’
In your query, put SelectedClients() as the parameter for selection.
There are probably other ways to skin this cat but this works for me. Hope this helps. -
WSaap2
AskWoody LoungerI have a multiselect listbox “lstSelectClients” that lists each of our clients. The user can select multiple clients from this list. There is an “After Update” event on this list box that calls this procedure:
””””””””””””””””””””””””””””””””””””””””””””””””””””””””””’
‘for any form where users need to select multiple clients from a multiselect list box. This functions returns a WHERE statement that can be used in queries, report filters, or other procedures.‘returned string looks like this:
‘ “[CLIENT]= ‘11124’ Or [CLIENT]= ‘11128’ Or [CLIENT]= ‘11134’”
‘
‘
Public Function SelectedClients() As String
‘create filter for selected records
Dim ctlSource As Control
Dim strItems As String
Dim intCurrentRow As Integer
Dim intStringLength As Integer
Dim strAster As String
Dim strQuote As String
strQuote = Chr(34)
strAster = Chr(42)
‘put your form name here.
Set ctlSource = Forms![frm_Your_Form_Here]!lstSelectClients‘evaluate number of items on list to make the filter query
‘processes more than one item
For intCurrentRow = 0 To ctlSource.ListCount – 1
If ctlSource.Selected(intCurrentRow) Then
strItems = strItems & “[CLIENT]= ” & “‘” & ctlSource.Column(0, _
intCurrentRow) & “‘” & ” Or ”
End If
Next intCurrentRow‘remove the last “Or” from the search string
intStringLength = Len(strItems)If intStringLength = 0 Then
‘If user does not select any clients from the list, the WHERE clause returns a wildcard
strItems = “[CLIENT] Like ” & “‘” & strAster & “‘”
Else
strItems = Left(strItems, (intStringLength – 4))
End If
‘pass value to function
SelectedClients = strItems‘Reset destination control’s RowSource property.
Set ctlSource = NothingEnd Function
””””””””””””””””””””””””’
In your query, put SelectedClients() as the parameter for selection.
There are probably other ways to skin this cat but this works for me. Hope this helps. -
WSaap2
AskWoody LoungerI had a similar experience where I had to explicitly reference the controls with something like forms!frmName1!ctrControl.value and make sure the parent child link in the properties box was correct.
Hope this helps. -
WSaap2
AskWoody LoungerI had a similar experience where I had to explicitly reference the controls with something like forms!frmName1!ctrControl.value and make sure the parent child link in the properties box was correct.
Hope this helps. -
WSaap2
AskWoody LoungerZAve,
This code works great. Many thanks for your help. I have implemented it successfully. -
WSaap2
AskWoody LoungerZAve,
This code works great. Many thanks for your help. I have implemented it successfully. -
WSaap2
AskWoody LoungerMark,
Thanks for your help. I am able to GET files successfully if they are 8.3 names. I am working on the GetShortPathNames function now. I just found out that not all the users are using AccessXP. It turns out that some still use A97. I am going to make a run-time version to load on their laptops and see if it works.Thanks again.
-
WSaap2
AskWoody LoungerMark,
Thanks. I found some examples in MSKB. I tried this behind a command button:
Inet3.Execute “ftp://www.somesite.com”, _
“GET UserUpdates.txt C:My DatabasesUserUpdates.txt”
but got the message
Error 35754
Unable to connect to remote hostI checked the properties of the control and am sure the
user name, password are correct. The URL property looks like this
ftp://username:password@www.somesite.com (names changed to protect the innocent.)
protocol property is 2-icFTP
access type 0-acUseDefault
request timeout 60I will copy your code into a function and call it from the command button and see what happens.
In the meantime, I found a good chapter in the Ekedhal book on implementing an FTP client.
Thanks -
WSaap2
AskWoody LoungerThe ftp site requires a username and password. I entered username and password in my FTP Locatation when I set it up.
Thanks,
![]() |
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
-
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
4 hours, 21 minutes ago -
AI slop
by
Susan Bradley
3 hours, 31 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
5 hours, 37 minutes ago -
Two blank icons
by
CR2
12 hours, 7 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
14 hours, 31 minutes ago -
End of 10
by
Alex5723
17 hours, 12 minutes ago -
End Of 10 : Move to Linux
by
Alex5723
17 hours, 41 minutes ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
14 hours, 10 minutes ago -
test post
by
gtd12345
23 hours, 12 minutes ago -
Privacy and the Real ID
by
Susan Bradley
13 hours, 20 minutes ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
5 hours, 26 minutes ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
1 day, 3 hours ago -
Upgrading from Win 10
by
WSjcgc50
4 hours, 56 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
22 hours, 39 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
1 day, 19 hours ago -
The story of Windows Longhorn
by
Cybertooth
1 day, 6 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
1 day, 21 hours ago -
Are manuals extinct?
by
Susan Bradley
8 hours, 40 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
2 days, 6 hours ago -
Network Issue
by
Casey H
1 day, 17 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
2 days, 18 hours ago -
May 2025 Office non-Security updates
by
PKCano
2 days, 18 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
2 days, 20 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
1 day, 21 hours ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
2 days, 22 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
2 days, 22 hours ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
3 days, 6 hours ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
1 day, 22 hours ago -
Asking Again here (New User and Fast change only backups)
by
thymej
3 days, 17 hours ago -
How much I spent on the Mac mini
by
Will Fastie
1 day, 1 hour 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.