Solved

Common Controls

Posted on 1998-11-20
7
142 Views
Last Modified: 2010-05-18
I have my own image controls such as close, move next, prev, last etc i use them in most of my forms, how can i use a module to keep them all an use them with every module seperately. I am not strong in general modules programming, so please make it as simple as my brain can take.

thanks
0
Comment
Question by:abidsml
7 Comments
 
LVL 14

Expert Comment

by:waty
ID: 1445833
The best solution is creating an OCX, add all your code in that OCX. See in the help file to see how to create OCX.

If you explain a little more, I could help you
0
 

Author Comment

by:abidsml
ID: 1445834
Thanks, I never worked with OCX, but what i need is to make a single code for my navigation buttons ie, next, find, exit, last filter etc and use it in every form i create.
0
 

Accepted Solution

by:
EnterSandman earned 50 total points
ID: 1445835
There is no simple way to do that without creating an OCX control. If you still need to create specific code for each form, you can allwais provide the interface in your OCX to do that.
Know the big isue here is that I think, by your reply that you are not very familiar with Classes and Object development. Think again. If you develop software without classes and objects, you may say you are still developing in Visual Basic 3.0. So my advice is you to get some info on this, and learn as mutch as you can, because beleave me, they are like Mobile phones.... you dont need them until you have one. Then you cant live without them.
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 

Author Comment

by:abidsml
ID: 1445836
i want to mention that my progs & forms are in VBA Access 97 , is the same as VB5.
0
 
LVL 1

Expert Comment

by:MAVERICK
ID: 1445837
A quick comment.... Although a OCX is the best solution... a easier option might be to create a module with the appropriate subs for the controls in it ... and reuse the module.........


0
 

Author Comment

by:abidsml
ID: 1445838
Ok Mavrick, so how can i refer to the controls , command buttons from each form to the module, can i keep the name of the control consistant then ie. cmdNext, cmdPrev
thank you
0
 
LVL 1

Expert Comment

by:MAVERICK
ID: 1445839
I'll try and give you a exampe APP for it....

0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question