change String text to be Form Object

D

dom

I want change a string text to be Form Object. How am I do.

e.g.

Dim a as Form
a = "Forms![frmWIPEntry]![frmWorkDone].Form![Begin]"
a= "5000"

expect : Me.begin.value = "5000"
 
R

Rob Oldfield

I'm not exactly sure what you're asking here, but you can do this...

Dim formname As String
Dim controlname As String
formname = "Whatever"
controlname = "txtVitalField"
Forms(fname)(cname) = "abdce"
 
D

dom

Thanks, it is useful to me if under such circumstance "me.begin" or
"frmWorkDone.begin". How I am express when use this
"Forms![frmWIPEntry]![frmWorkDone].Form![Begin]" as your suggested format.

Rob Oldfield said:
I'm not exactly sure what you're asking here, but you can do this...

Dim formname As String
Dim controlname As String
formname = "Whatever"
controlname = "txtVitalField"
Forms(fname)(cname) = "abdce"


dom said:
I want change a string text to be Form Object. How am I do.

e.g.

Dim a as Form
a = "Forms![frmWIPEntry]![frmWorkDone].Form![Begin]"
a= "5000"

expect : Me.begin.value = "5000"
 
R

Rob Oldfield

Dim formname As String
Dim subformcontrolname As String
Dim controlname As String
formname = "frmWIPEntry"
subformcontrolname = "frmWorkDone"
controlname = "Begin"
forms(formname)(subformcontrolname).form(controlname) = "abcde"


dom said:
Thanks, it is useful to me if under such circumstance "me.begin" or
"frmWorkDone.begin". How I am express when use this
"Forms![frmWIPEntry]![frmWorkDone].Form![Begin]" as your suggested format.

Rob Oldfield said:
I'm not exactly sure what you're asking here, but you can do this...

Dim formname As String
Dim controlname As String
formname = "Whatever"
controlname = "txtVitalField"
Forms(fname)(cname) = "abdce"


dom said:
I want change a string text to be Form Object. How am I do.

e.g.

Dim a as Form
a = "Forms![frmWIPEntry]![frmWorkDone].Form![Begin]"
a= "5000"

expect : Me.begin.value = "5000"
 
D

dom

thank you
dom

Rob Oldfield said:
Dim formname As String
Dim subformcontrolname As String
Dim controlname As String
formname = "frmWIPEntry"
subformcontrolname = "frmWorkDone"
controlname = "Begin"
forms(formname)(subformcontrolname).form(controlname) = "abcde"


dom said:
Thanks, it is useful to me if under such circumstance "me.begin" or
"frmWorkDone.begin". How I am express when use this
"Forms![frmWIPEntry]![frmWorkDone].Form![Begin]" as your suggested
format.

Rob Oldfield said:
I'm not exactly sure what you're asking here, but you can do this...

Dim formname As String
Dim controlname As String
formname = "Whatever"
controlname = "txtVitalField"
Forms(fname)(cname) = "abdce"


I want change a string text to be Form Object. How am I do.

e.g.

Dim a as Form
a = "Forms![frmWIPEntry]![frmWorkDone].Form![Begin]"
a= "5000"

expect : Me.begin.value = "5000"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top