meaning of this VBA/modules

hfsitumo2001

Member
Local time
Today, 12:36
Joined
Jan 17, 2021
Messages
394
Anyone can explain to me in a simple languange, what does this function mean?
Call FillFormLabels(Me.Name)
 
It means there is or was a User Defined Function in your DB. Do a search of your application and you should find it.

Once you do, place the code here and we will be able to help you.
 
Could you educate me how to search?
 
on vba type Ctrl-F (find). select the Option "Current Project"
 
The other part of that explanation is that the subroutine argument as shown by (Me.Name) is passing the name of the current form into the subroutine. That "Me." syntax ONLY works in class modules that are intimately associated with specific forms or specific reports. It does not work in general modules, i.e. modules that are independent of any form or report.
 
Do you have multiple language labels?
It sounds like you have a general function to set the labels on a form. I can only think you might need that if you wanted to make the app in multiple languages.
 
Could you educate me how to search?
You could also place your mouse cursor over "FillFormLabels(Me.Name)", then right click and select "Definition". The IDE will take you directly to the Function, wherever it resides in the project.
 
Last edited:
on vba type Ctrl-F (find). select the Option "Current Project"
on vba type Ctrl-F (find). select the Option "Current Project"
Arnel, I do like you said, yes it needs basUtility. and I import it from my membership database, but it can not get to work.

Here is I upload part of my database, just for login form. I copied the VBA from my membership form " Pembukaan" to frmMain for my database, but still hanged in form label.
Could you help me Arnel? . So what I want is one password to open the frmNewpassword, then later the user can use it to open the frmMain to open Swithboard
 

Attachments

Hi. When I tried to open your sample database, I got this error, which means you didn't give us all that is needed to make it work. Therefore, we can't tell you what that function means.

1611608722042.png
 
No one can help you. It is calling a procedure that does not exist. Probably was deleted on in another module that was not copied into this database. No one has an idea what that code does. If you know what that code does, then we can help recreate it. If not get rid of that line of code and hope it is not needed for anything.
 
No one can help you. It is calling a procedure that does not exist. Probably was deleted on in another module that was not copied into this database. No one has an idea what that code does. If you know what that code does, then we can help recreate it. If not get rid of that line of code and hope it is not needed for anything.
OK MajP, I will try deleting it
 
No one can help you. It is calling a procedure that does not exist. Probably was deleted on in another module that was not copied into this database. No one has an idea what that code does. If you know what that code does, then we can help recreate it. If not get rid of that line of code and hope it is not needed for anything.
OK MajP, I delelted that call labels, and I entered Admin password "FHS26652" to give user password, but still debug. As you see the Afterupdate of the textbox, it is supposed to open the frmNewpassword.

Where am I wrong?
 

Attachments

OK MajP, I will try deleting it
Before deleting, you may want to try to find where this code came from. Likely they imported this code from another location and some stuff has been forgotten. It could be one module with lots of missing procedures.
 
You could also place your mouse cursor over "FillFormLabels(Me.Name)", then right click and select "Definition". The IDE will take you directly to the Function, wherever it resides in the project.

Never knew that one. FYI, faster (for me) is clicking on the function name and hitting Shift-F2. Ctl-Shift-F2 will take you back.
 
Paul, I found it by accident one day. Makes me wonder what other cool stuff there is...
 
You are missing a lot more than just that procedure. You need to find the original source.
 

Users who are viewing this thread

Back
Top Bottom