Hi. I am a novice with VBA, but I know a fair amount of C++ and Python.
I am trying to create a Copy button that copies the values in set of fields in one form and a paste button that when called will enter the data into another set of fields in another form.
I was thinking global variables would help here.
Ie.
Global = var1
Global = var2
Global = var3
Private sub command 01_click()
var1 = field 1
var2 = field 2
var3 = filed 3
-----------
private sub command 02_Click()
field 1 = var1
field 2 = var2
field 3 = var3
Can someone help me with the coding? I dont know the syntax for global variables. I am tying to put the golbal variables in the specific forms code and im getting an error.
I am trying to create a Copy button that copies the values in set of fields in one form and a paste button that when called will enter the data into another set of fields in another form.
I was thinking global variables would help here.
Ie.
Global = var1
Global = var2
Global = var3
Private sub command 01_click()
var1 = field 1
var2 = field 2
var3 = filed 3
-----------
private sub command 02_Click()
field 1 = var1
field 2 = var2
field 3 = var3
Can someone help me with the coding? I dont know the syntax for global variables. I am tying to put the golbal variables in the specific forms code and im getting an error.