473,408 Members | 2,839 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

run vba code from an acces form

Hi,

I am planning a hidden administrative form in an access 2000 adp/ade
through which I could run vba functions or procedures just as I can
use them in the direct vba window in vba editor.
Thought about a textfield to put in the vba command an run it after
click on a cmd button:
e.g.: clsUser.Logon_user("username","Password","rolememb er"....)

But how do I execute this string in vba, so that I can use the form
for several functions or procedures even in an .ade??

Thanks for any suggestion and help
Stephan
Nov 12 '05 #1
1 4334
On 9 Sep 2003 08:07:07 -0700 in comp.databases.ms-access,
sg*******@sektor-n.de (Stephan Gehrlein) wrote:
Hi,

I am planning a hidden administrative form in an access 2000 adp/ade
through which I could run vba functions or procedures just as I can
use them in the direct vba window in vba editor.
Thought about a textfield to put in the vba command an run it after
click on a cmd button:
e.g.: clsUser.Logon_user("username","Password","rolememb er"....)

But how do I execute this string in vba, so that I can use the form
for several functions or procedures even in an .ade??


Dunno about class methods but if it's a public function you can use
Eval(), e.g. Eval("LogonUser(""username"",""password"")")

--
A)bort, R)etry, I)nfluence with large hammer.
Nov 12 '05 #2

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

Similar topics

4
by: Kona | last post by:
Hello, I would like to known if it is possible to limit acces to a UDB database on Solaris system through db2connect to only specified clients ? My client is a db2connect on Windows platform. ...
1
by: TTD_hck | last post by:
Hello, I need suggestions for the following. I have a acces 97 database and with a script command in acces 97, I can e-mail a file via outllok. I do this with the folowing command in Acces 97:...
2
by: solar | last post by:
I want to make the tables and modules to be made invisible on opening the main form by code, if such possibility exists at all ? I am aware of the usual method offered by Acces in the Options box,...
6
by: Clément Collin | last post by:
I working on a GIS project, with Access link which just need a little routine in VBA, but I haven't knowledges in VBA language. It's very simple, and it looks like that in a TPascal way : .......
10
by: Robert | last post by:
I have created an array of panels (dim panels(100) as new panel). I've succesfully loaded them on the form. What code should I write in order to have acces to the mouseover event for each of the...
0
by: Nikeco | last post by:
Hello, I`m a little new to access and vb But i need to write a webservice client for a certified webservice, My certificate is stored in the keystore of microsoft and i don`t know how to...
6
by: zaankanter | last post by:
Hi, This my problem. After distribution of my acces-application I want the new user to be able to enter his Name-adress-etc values, in a one-row table called program-variables. These will be used...
1
by: muddasirmunir | last post by:
i am using vb6 and access i had made a pasword on acces i use a module in the start of a project and make a connection using code this DataPath = App.Path & "\mydatabase.mdb" con1.Open...
6
by: gbaii | last post by:
Hi all. Being new to access and wanting to build some kind of basic CRM software, I have the following problem. I have a table called users with the fields: UserID, UserName, UserPass and UserType....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...
0
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,...
0
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...

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.