473,763 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

UserForms

Do you know about UserForms in Access?

UserForms seems to me to be just like VB Forms, or Excel UserForms.
They are not Access objects and have little or nothing to do with
Access forms. In the Project Explorer that appear in a Forms folder,
far removed from Microsoft Access Class Objects. They have a very full
set of editable properties, code modules, controls etc.

They can be created in Access 2003.

That's about all I know. I've created them, put controls on them (not
data controls of course, but, for example, command buttons).

Now I have only two problems.

The first is that creating them totally and AFAICT irrevocably corrupts
the VBA project of the Access database and by extension anything at all
of the db that has to to do with VBA (which is why I haven't told you
how I created them; if you're going to cook your DB then you should
come up with the recipe yourself). One more time; THEY HAVE ALWAYS
TRASHED MY DB, SO I STRONGLY SUGGEST YOU USE ONLY A THROW_AWAY_COPY IF
YOU EXPERIMENT. Some people will think of this as a negative.

and

I can't open them.

I don't find references to these in Google or in MSDN but myabe I'm not
recognizing these when I see them.

Would they be good for anything? I'm not sure.

Why did I fool with these. A few weeks ago someone in here asked about
the VBA Load Sub. It seemed to be related to a VBA form and not an
Access form. So I wanted to see if I could create a VBA form.And yes,
one can.

I thought one might need the VBA Extensibility reference to do this,
but it nows seems (75%) that I do not.

So, any experience, opinion, reference about these?

Dec 23 '05 #1
3 8015
Well, the over-whelming interest is over-whelming.

I now have an example that works and does not corrupt the world. (But
can I ever create a second such example)?

It has a command button. The code behind the command button is:

Private Sub CommandButton1_ Click()
MsgBox "blah"
End Sub

It works.

So now I have a user form that does what I can do with an Access form.
Yay!

Now what?

Now I need someone to tell me something he/she has always wanted to do
with an Access form that he'she can't, but that he/she is pretty sure
can be done with a VBA form.
Maybe set the back color of the command button? Can I do that on the
UserForm? Yes!
Can I set the back color of a command button on an Access form?
hmmmmmmmm . I've never tried this so let's see. Well, it's greyed out
so maybe the answer is no?

Ouch. It seems that when the UserForm is created a reference to
Microsoft Forms 2.0 is created automatically.

Back to the hockey game. The Prunes are winning.

Dec 23 '05 #2
Lyle Fairfield wrote in message
<11************ **********@g43g 2000cwa.googleg roups.com> :
Well, the over-whelming interest is over-whelming.

I now have an example that works and does not corrupt the world. (But
can I ever create a second such example)?

It has a command button. The code behind the command button is:

Private Sub CommandButton1_ Click()
MsgBox "blah"
End Sub

It works.

So now I have a user form that does what I can do with an Access form.
Yay!

Now what?

Now I need someone to tell me something he/she has always wanted to do
with an Access form that he'she can't, but that he/she is pretty sure
can be done with a VBA form.
Maybe set the back color of the command button? Can I do that on the
UserForm? Yes!
Can I set the back color of a command button on an Access form?
hmmmmmmmm . I've never tried this so let's see. Well, it's greyed out
so maybe the answer is no?

Ouch. It seems that when the UserForm is created a reference to
Microsoft Forms 2.0 is created automatically.

Back to the hockey game. The Prunes are winning.


One question, if I may - how did you create the userform
initially?

I'm not able to do that through "ordinary means" (insert menu).
In the versions I've tested this, 2000-2003, I had to export a
userform from Word/Excel, then import it to Access, either
that, or do some commandbar tweak that I suspect are
available more because of the shared IDE than planned
availability in the Access VBE IDE.

A while ago, out of pure curiosity, I just tested some
imported userforms in Access, and confirmed they behaved just
as they did in Word/Excel.

As far as I can see or judge, the userforms are not native to
Access, and I don't know enough about how usage of them could
influence the rest of the project (re your corruption
experience, which I have not experienced), so I don't think
I'm going to start using them. Unless off course, someone can
point out some major benefits of them vs Access forms.

Have you had any success removing the MSForms2 reference
after removing the UserForm?

Here's the first Google reference I got with the term "Access
UserForm" (just lucky I guess, cause it's a bit hard finding
more;-)
http://www.vb123.com/toolshed/03_map/userforms.htm

--
Roy-Vidar

Dec 23 '05 #3
I've just skimmed the article.
I created a userform in the same way he/she describes.
That is I customized a menu (toolbar works too) and from the Insert
group, dragged the Insert UserForm Button to a menu location. Clicking
that button creates a UserForm.

Dec 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

23
2705
by: Steve Jorgensen | last post by:
Hi all, I'm working on a project through a consulting company, and I'm writing some database code for use in another programmer's project in Excel/VBA. The other programmer is working through the same consulting company. I did not initially know this other programmer's experience level, but he seemed down to earth and friendly. I saw some signs of trouble after having him try to integrate some of my code, but chalked it up to him...
6
3671
by: Terry Bell | last post by:
We've had a very large A97 app running fine for the last seven years. I've just converted to SQL Server backend, which is being tested, but meanwhile the JET based version, running under terminal server, has suddenly started running very slowly. The network engineer has thrown up his hands and said "It's Access 97". I've checked out lots of things including the Oplocks setting and other stuff from this NG, and I think I've done everything...
13
4906
by: guy | last post by:
Is it possible to retrieve the name of the fields in a word document, and replace them with values, coming from a database ?
1
2222
by: miron | last post by:
Hi! How to create horizontal scrollbar in listbox (vba). Help. Artur Mironczuk
3
3858
by: Martin Austin | last post by:
Here's my problem. I'm launching an MS Word object on a Notes document Postopen event. The script kicks off a macro that saves the Word document to a temporary file every n minutes (backup of key data). This works fine apart from Notes kind of hangs because it is waiting on the macro to finish. This never happens because the macro is using timer code to save every n minutes. The solution sounds simple, start the macro on the Word...
4
1792
by: MLH | last post by:
I copied the code example below from A97 HELP. However, I get an error when I try to use something like frmMainMenu.Hide and am uncertain as to why. Ideas? The following example assumes two UserForms in a program. In UserForm1's Initialize event, UserForm2 is loaded and shown. When the user clicks UserForm2, it is hidden and UserForm1 appears. When UserForm1 is clicked, UserForm2 is shown again. ' This is the Initialize event...
3
1288
by: Nieltz | last post by:
Hey, How can I copy a Userform from one workbook to another one? Thanks for helping
1
10650
by: elLiven | last post by:
Hi I'm trying to learn VBA in Excel mysel. Getting stuck on userforms. I can create a userform with optionbuttons and command buttons. I want to know how to have the form display the command button as inactive until an optionbutton is ticked and then becomes active?
9
1861
by: Access | last post by:
In my user interface if a user doesn't have access to a field in the database I lock it and make the background color yellow. Problem is I'm maintaining permissions in two different places. On the server and in my client. I was wondering if there is a way to query SQL server on the client side and find out if the user has access to a field. If no update then lock it. If no delete on the table then disable delete on the form etc. ...
0
9389
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10149
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10003
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9943
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8825
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7370
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5410
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3529
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2797
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.