-
WSsvetljop
AskWoody LoungerYes, it OK now.Thank you
-
WSsvetljop
AskWoody LoungerDear Hans
I thank you for your reply which i applied. I think i have not explained correctly what i need. What i need is the following. In the items 1 and 2 from the report in the attachement, the words TurnedDown should be invisible and in item 3 the word TurnDown should be visible
Thank you in advance
-
WSsvetljop
AskWoody LoungerThank you, Dear Hans. My code now is great ! Super !
-
WSsvetljop
AskWoody LoungerThank you so much for your explanation.I get no errors now but i do not get the shortcuts.May be i cannot get them with the endings i include ?
-
WSsvetljop
AskWoody LoungerThank you very much for your email.I have rewritten my private function to be named GetDBZList and have written
GetDBZList Me = Mid$(strList, 3) so with your help it is all right with the function.However in the OnLoad event of the form the line
GetDBZList = Me.txtFolder
is not correct,since it does not point to the desktop.What shall i right in this line?
Otherwise the OnLoad event as it is right now is :Private Sub Form_Load()
Application.SetOption (“Show Hidden Objects”), FalseMe.txtFolder = “C:BE”
GetDBList Me.txtFolder
GetDBZList Me.txtFolder
GetDBLnkList = Me.txtFolder
Me.txtDatabaseList = GetDBList(Me.txtFolder) & vbCrLf & GetDBZList(Me.txtFolder)
‘ Move to new record
RunCommand acCmdRecordsGoToNew
Me.txtFolder = “C:BEstore”
GetDBList Me.txtFolder
GetDBZList Me.txtFolder
GetDBLnkList = Me.txtFolder
Me.txtDatabaseList = GetDBList(Me.txtFolder) & vbCrLf & GetDBZList(Me.txtFolder)
‘ Move to new record
RunCommand acCmdRecordsGoToNew
Me.txtFolder = GetDesktop
GetDBList Me.txtFolder
GetDBZList Me.txtFolder
Me.txtDatabaseList = GetDBList(Me.txtFolder) & vbCrLf & GetDBZList(Me.txtFolder)End Sub
Thank you in advance
-
WSsvetljop
AskWoody LoungerIn the attachement i have applied,and that works fine, i wanted to add on a code to get also the short cuts ending with .lnk on the desktop.I put the foolowing code:
Private Function ShortCuts (ByRef strPath As String) As String
Dim CheckFile As String
Dim strList As String
CheckFile = Dir(strPath & “/*.lnk”)
Do Until CheckFile = “”
strList = strList & vbCrLf & CheckFile
CheckFile = Dir
Loop
GetDBZList = Mid$(strList, 3)
End FunctionIs my code all right? Because if it all right, i should look for my failure to perform somewhere else
Thank you in advance
-
WSsvetljop
AskWoody Loungerthank you for the advice.Where could i ask for building a web interface ?
-
WSsvetljop
AskWoody LoungerOh My God ! There is not a single file with an ending mdb on my desktop ? I am awfully sorry !
-
WSsvetljop
AskWoody LoungerThank you so much for your advice.I applied it and it did work. Whwn i tried to intergate it in my coe however,i coldnt change the option.
What may be the reason for that?
Public Sub HideTables(f As Boolean)
‘To hide tables, use ‘and to unhide them, use HideTables False
Dim tbl As AccessObject
For Each tbl In CurrentData.AllTables
If Not Left(tbl.Name, 4) = “MSys” Then
Application.SetHiddenAttribute acTable, tbl.Name, f
End If
Next tbl
Set tbl = Nothing
Application.SetOption “Show Hidden Objects”, f
End Sub -
WSsvetljop
AskWoody LoungerCopyFile may be not the right word, maybe copy object,but what i need to know is can i copy a query from Database B , rename it and send it to Database C ?
Access is so powerful, perhaps there exists a possibility to copy a query through code from one database to another. -
WSsvetljop
AskWoody LoungerI want it to do it automatically by code, since this process repeats itslef with me many times.I need a code something like
FileCopy(….
Is it possible ? -
WSsvetljop
AskWoody LoungerThank you !!!!! It works perfect and i have made now my first table orders1 in the way you have proposed.
I came accross difficulties with the table [order details], since there is no field orderdate and naturally i will get errors.
Is there any way to extract the data for the table [order details],matching the orders for
the given interval?
The tables orders and order details are related with one to many relationship.The connecting field is orderid for both tables
So,my question is, can i make a new table [order details1],based on the table orders1 ?The following function naturally is erroneous for the second table,since there is no field orderdate:
Public Function Dummy()
Dim SQL As String
SQL = “SELECT * INTO orders1 FROM orders WHERE orders.orderdate Between #3/31/2005# And #4/18/2005#”
CurrentDb.Execute SQL
SQL = “SELECT * INTO [order details1] FROM [order details] WHERE [order details].orderdate Between #3/31/2005# And #4/18/2005#”
CurrentDb.Execute SQL
End Function -
WSsvetljop
AskWoody LoungerDear Hans,
My database is flying now i am very proud of it but i am fair enough to tell my friends
that i have done it with the help of this excellent Forum.kind regards
-
WSsvetljop
AskWoody LoungerI have omitted to place the fields on the table,but my problem remains.Of course i could set the afid to 4 with an upadate query,but it does not solve my
problem.Differemt users are using the form, and each user has different office number.For example, for on user the office number is 3 and for another 5.
My question is:Can i set all the records in the OnOpen event on the control afid to the number of the office?
If i do not solve my problem it will be due to my inability to describe reasonably what i am trying to do.kind regards
-
WSsvetljop
AskWoody LoungerDear Hans,
Could you please have a look at my form? The default value of the office is 4,but i get
the error Too few parameters.enter1.
I am afraid i commit some mistake somewherekind regards
![]() |
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
-
Defunct domain for Microsoft account
by
CWBillow
3 hours, 35 minutes ago -
24H2??
by
CWBillow
10 minutes ago -
W11 23H2 April Updates threw ‘class not registered’
by
WindowsPersister
53 minutes ago -
Master patch listing for April 8th, 2025
by
Susan Bradley
7 hours, 8 minutes ago -
TotalAV safety warning popup
by
Theodore Nicholson
34 minutes ago -
two pages side by side land scape
by
marc
1 day, 13 hours ago -
Deleting obsolete OneNote notebooks
by
afillat
1 day, 16 hours ago -
Word/Outlook 2024 vs Dragon Professional 16
by
Kathy Stevens
18 hours, 55 minutes ago -
Security Essentials or Defender?
by
MalcolmP
21 hours, 39 minutes ago -
April 2025 updates out
by
Susan Bradley
4 hours, 14 minutes ago -
Framework to stop selling some PCs in the US due to new tariffs
by
Alex5723
15 hours, 1 minute ago -
WARNING about Nvidia driver version 572.83 and 4000/5000 series cards
by
Bob99
5 hours, 6 minutes ago -
Creating an Index in Word 365
by
CWBillow
1 day, 7 hours ago -
Coming at Word 365 and Table of Contents
by
CWBillow
23 hours, 5 minutes ago -
Windows 11 Insider Preview Build 22635.5170 (23H2) released to BETA
by
joep517
2 days, 11 hours ago -
Has the Microsoft Account Sharing Problem Been Fixed?
by
jknauth
2 days, 14 hours ago -
W11 24H2 – Susan Bradley
by
G Pickerell
2 days, 16 hours ago -
7 tips to get the most out of Windows 11
by
Alex5723
2 days, 14 hours ago -
Using Office apps with non-Microsoft cloud services
by
Peter Deegan
2 days, 7 hours ago -
I installed Windows 11 24H2
by
Will Fastie
13 hours, 57 minutes ago -
NotifyIcons — Put that System tray to work!
by
Deanna McElveen
2 days, 19 hours ago -
Decisions to be made before moving to Windows 11
by
Susan Bradley
1 hour, 8 minutes ago -
Port of Seattle says ransomware breach impacts 90,000 people
by
Nibbled To Death By Ducks
3 days, 4 hours ago -
Looking for personal finance software with budgeting capabilities
by
cellsee6
2 days, 12 hours ago -
ATT/Yahoo Secure Mail Key
by
Lil88reb
2 days, 12 hours ago -
Devices with apps using sprotect.sys driver might stop responding
by
Alex5723
3 days, 21 hours ago -
Neowin – 20 times computers embarrassed themselves with public BSODs and goofups
by
EP
4 days, 5 hours ago -
Slow Down in Windows 10 performance after March 2025 updates ??
by
arbrich
5 hours, 6 minutes ago -
Mail from certain domains not delivered to my outlook.com address
by
pumphouse
3 days, 14 hours ago -
Is data that is in OneDrive also taking up space on my computer?
by
WShollis1818
4 days 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.