Hi,
Clarify the following plz. Why it is "pbAdd" for command buttons name property instead of "cmdAdd".
Private Sub pbAddNew_Click()
adoPublishers.Recordset.AddNew
ChangeStatus NowAdd
txtCompanyID.SetFocus
End Sub
Printable View
Hi,
Clarify the following plz. Why it is "pbAdd" for command buttons name property instead of "cmdAdd".
Private Sub pbAddNew_Click()
adoPublishers.Recordset.AddNew
ChangeStatus NowAdd
txtCompanyID.SetFocus
End Sub
typically cmd is used for command buttons, but it is NOT required.
are you sure its a command button? could be a PictureBox (pb)
there are click events for almost all controls
Maybe named pbAdd for PushButtonAdd
well.. yep, its a Command button.
Not sure. as I said.. the cmd is typacally the way to name a command button but it is not required, you can name it anything you want. Its just a good idea to stick to the standard naming convention so that others can understand what you are doing in your code
It ain't a big deal what so ever - if you don't like the name of any object rename it but then use Find/Replace option in the project so it would compile.
Because someone named it that way.Quote:
Originally Posted by user3377