|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
New to Forum:
1) Have successfully passed the name of a field to an activeX control procedure through Open.Args fully qualified (e.g. "Forms!frm_maintain_account.review_date") and stored it in String variable called stFormField (tried DIM with control and object could not get it to work either). 2) Problem is that when I try using stFormField = date <==(it puts the actual date in) or Set stFormField = date I get object related errors? If I use the full reference to source form instead of stFormField it works... e.g. Forms!frm_maintain_account.review_date = date but then I will not be able to class... Help would be much appreciated .... EACE |
|
#2
|
|||
|
|||
|
Are you passing the value of "Forms!frm_maintain_account.review_date" or the name of the control? Your post indicated you are passing the name of a field and I assume you meant control. If so you will need to add the .Name to specify the name of the control not the value.
stFormField = Forms!frm_maintain_account.review_date.Name |
|
#3
|
|||
|
|||
|
Quote:
EACE |
![]() |
| Viewing: Dev Articles Community Forums > Databases > Microsoft Access Development > Can't Reference a form!field value contained in a string variable |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|