-
WSaccdb
AskWoody LoungerHi Hans,
I wasn’t being dense. Bad example.
Thanks again.
-
WSaccdb
AskWoody LoungerThanks for responding Hans and Charlotte.
From your posts forms do not have a rst property but, “It can be the name of a table, or the name of a query, or a SQL string.”
Any ideas on a naming convention as to how from the OnOpen Event of the form in DB2, I can let the form know that I am using the query from DB1.
I tried Me.RecordSource = dbs.QueryDefs(“qry_EditRecords”) Type mismatch.
Thanks
-
WSaccdb
AskWoody LoungerThanks for the info.
-
WSaccdb
AskWoody LoungerThanks Wendell, Hans, and Charlotte.
Hans, your code is just what I was looking for.
Wendell, when you use a library database how are you calling the functions and what type of overhead is there over a Novell and/or MS network?
Charlotte,
___________________________________________________________________
You totally lost me here. Do you mean pass the functions to the created *module*?
___________________________________________________________________Yes. My plan was to pass the entire function into the newly created module. Sorry for the confusion.
-
WSaccdb
AskWoody LoungerHi Charlotte,
Do you have detailed instructions or code that attaches to SQL Server Views from Access 97?
Thanks
-
WSaccdb
AskWoody LoungerHi Wendell,
Thanks for responding. I guess the answer is both.
The problem I am trying to solve:
I now have several functions that I use in most of my projects and my thought was to place them in a table. When beginning a new project I would like to select the functions I will use, auto-create one function, and pass the functions I will use in that project to the created function.
The academic exercise:
If a module can be created with DoCmd.RunCommand acCmdNewObjectModule, when and why would you use this, and how would you programmatically name and save the module?
-
WSaccdb
AskWoody LoungerTry importing the table from DB(A) into DB© bypassing DB(
.
-
WSaccdb
AskWoody LoungerThanks Sam. Your answer worked great.
-
WSaccdb
AskWoody LoungerPost your Macro to the list.
Right mouse click on your macro
Left mouse click on Save As/Export
Select “Save as Visual Basic Module”
Select Convert
Click on the Modules Tab
Copy and post the contents of the “Converted Macro- Your Macro Name”
-
WSaccdb
AskWoody LoungerNovember 1, 2002 at 3:55 pm in reply to: after add new record …how do I move cursor (Access 97) #628410This might help
Forms!NameOfYourForm![NameOfControlOnYourForm].SetFocus
-
WSaccdb
AskWoody LoungerNovember 1, 2002 at 3:29 pm in reply to: after add new record …how do I move cursor (Access 97) #628399Are you working with a form?
-
WSaccdb
AskWoody LoungerThe fastest would be for you to convey the username and password that you have been using.
But, for possible future use of the database and maintenance, you might want to create a group with the same permissions that you have. Make each site user a member of the group, or, create one user for each site if their are multiple users at each site.
Sometimes projects that have ended have been resurrected.
HTH
-
WSaccdb
AskWoody LoungerSeptember 17, 2002 at 1:45 pm in reply to: winNT dir exists – code not seeing the dir (word97 sr2b) #617494Try:
Dim strTempFolder as String
strTempFolder = Dir( “C:TempConvert”)
If strTempFolder = “” Then
MkDir strTempFolder
SetAttr “C:TempConvert”, vbHidden ‘ Set folder with hidden attribute.
End If -
WSaccdb
AskWoody LoungerYes. [Currentuser] is a special word to denote who is using the database at the moment. No, you don’t need any code to determine the [Currentuser].
Search on CurrentUser Function in the help files to get a detailed explanation.
-
WSaccdb
AskWoody LoungerSet the controls property for the controls you are going to turn on and off to Visible = False
In the OnCurrent event of your form
If ([CurrentUser] = “Bob”) Or ([CurrentUser] = “Jeff”) Then
Forms!Combobox1.Visible = True
Forms!Combobox2.Visible = True
End If[CurrentUser] holds the name of whoever logged in to the DB.
When Phil logs in the controls are all ready set to Visible = False
![]() |
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
-
Windows bug blocks BIOS updates for Lenovo ThinkPad laptops
by
Alex5723
27 minutes ago -
O&O Software – ‘World Backup Day’ Sale
by
unbob
1 hour, 1 minute ago -
Still version 23H2?
by
WSbxcfilm
1 hour, 15 minutes ago -
Ubuntu 25.04 (Plucky Puffin) Beta released
by
Alex5723
7 hours, 11 minutes ago -
How to install App Store apps on an external SSD
by
Alex5723
8 hours, 5 minutes ago -
Where is Windows going?
by
Susan Bradley
2 hours, 37 minutes ago -
Installing Feature Update Windows 11 24H2
by
geekdom
1 day, 1 hour ago -
Windows 11 Insider Preview build 27823 released to Canary
by
joep517
1 day, 1 hour ago -
Windows 11 Hotpatch
by
Hackmuss
9 hours, 16 minutes ago -
System Guard service error still won’t be fixed
by
Susan Bradley
1 day, 2 hours ago -
Operation ForumTroll: APT attack with Google Chrome zero-day exploit chain
by
Alex5723
20 hours, 48 minutes ago -
Troy Hunt of HaveIBeenPwned Phished
by
Lars220
17 hours, 49 minutes ago -
Microsoft Windows security auditing Code 5061
by
mpw
1 day, 15 hours ago -
Can’t display images in incoming Outlook 365 emails
by
WScopwriter
22 hours, 45 minutes ago -
Windows 11 Insider Preview Build 26200.5510 early builds of 25H2
by
Alex5723
1 day ago -
0Patch : Micropatches released for SCF File NTLM Hash Disclosure Vulnerability
by
Alex5723
23 hours, 43 minutes ago -
Select multiple emails and they all open up!
by
CeeJay
2 days, 16 hours ago -
How to remove an update preview
by
Gunny
19 hours, 7 minutes ago -
Third party add ins reminder
by
Susan Bradley
1 hour, 48 minutes ago -
OTF, which backs Tor, Let’s Encrypt and more, sues to save its funding
by
Nibbled To Death By Ducks
2 days, 10 hours ago -
Updating Windows 10 to Windows 11: 23H2 or 24H2?
by
Still Anonymous
2 days, 20 hours ago -
How can I update “Explorer Patcher”
by
WSplanckster
2 days, 22 hours ago -
Check out the home page for Signal
by
CAS
2 days, 20 hours ago -
Windows 11 and Trial version of MS Office
by
Tex265
2 days, 19 hours ago -
Windows 11 Insider Preview build 26120.3585 (24H2) released to BETA
by
joep517
3 days, 3 hours ago -
Windows 11 Insider Preview build 26200.5510 released to DEV
by
joep517
3 days, 3 hours ago -
Windows 11 Insider Preview Build 26100.3624 (24H2) released to Release Preview
by
joep517
3 days, 3 hours ago -
Limits on User Names
by
CWBillow
2 days, 23 hours ago -
MS-DEFCON 4: Mixed bag for March
by
Susan Bradley
23 hours, 48 minutes ago -
Non Apple Keyboards
by
pmcjr6142
1 day, 1 hour ago
Recent blog posts
- Where is Windows going?
- System Guard service error still won’t be fixed
- Third party add ins reminder
- MS-DEFCON 4: Mixed bag for March
- Classic and Extended Control Panel — no need to say goodbye
- Things you can do in 2025 that you couldn’t do in 2024
- Revisiting Windows 11’s File Explorer
- Planning ahead for migration
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.