G
Guest
Is there a method to initialize all controls in a form? That means move blanks to text control or zero to numeric control.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
blanks to text control or zero to numeric control.Jerry said:Is there a method to initialize all controls in a form? That means move
bounded to a recordset. But how about if my form does not have recordsets.Jerry said:Thansk Brian. When I went through your code, I found that the form is
idea to use color for highlight if that control does not pass validation.Thanks for your code. It is beautiful. Actually you have given me some
'Set the related control's value.
For Each ctl In Me.Controls
If ctl.Name = fld.Name Then
'Do not attempt to set autonumber field.
If (fld.Attributes And dbAutoIncrField) = 0 Then
ctl = DefVal
Exit For
End If
End If
Next ctl
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.