Article ID: 141172
Article Last Modified on 12/9/2003
DatabaseName: <path to your VB directory>\biblio.mdb
Leave the RecordSource property blank for now.
Private Sub Command1_Click()
Data1.Database.TableDefs("Authors").Fields("Au_ID").Required = True
Data1.RecordSource = "Authors"
Data1.Refresh
End Sub
The line setting the Required property can't be placed in the Form_Load
event because the connection to the database is not guaranteed to be
valid until the Form_Load event is finished.
Private Sub Command1_Click()
Data1.Database.TableDefs("Authors").Fields("Au_ID").Required = False
End Sub
Additional query words: 4.00 vb4win vb4all
Keywords: kbdatabase kbprb KB141172