Does anyone have any insight about what would be some of the best literature on the web today on how to construct syntax in VBA from the start?
What I am looking for is "learn how to tie your shoes" basic literature. The most basic of the basic of the basic.
Most of what I am getting from anywhere is "how to use functions" and how to write them in VBA.
Here is an example:
This doesn't teach me anything. I may have a working function but I have no clue why it work or understand the reasons why I must quote " " around Work_Order_Deta il_Subform
because sometime you don't need to and other time you have to put that line in [ ] but if it is on a page then I must first put Form! but other time maybe not because of a reason or another..... For me this is like a 50 years + of experience contractor would get started at showing a 5 year old on how to build a house without showing the kid why he should use a saw and not a shovel to cut wood to start with.
I really don't want to learn what different function do and where they can be used, I want to learn why I would use a function instead of another and why do I have to bracket some in a syntax and why sometime I must put them in "" instead.
AH! Eureka - I am looking for the "CONVENTION " on how to write VBA
Forgive me English is not my first language, I probably do not make much sense to a lot of people.
What I am looking for is "learn how to tie your shoes" basic literature. The most basic of the basic of the basic.
Most of what I am getting from anywhere is "how to use functions" and how to write them in VBA.
Here is an example:
Code:
Option Compare Database Sub Form_current() Dim strParentDocName As String On Error Resume Next strParentDocName = Me.Parent.Name If Err <> 0 Then GoTo Form_current_exit Else On Error GoTo Form_Current_err If Me.Parent.Name = "Work_Order_Details_SubForm" Then Me.Parent![Tasks_Form].Requery End If End If Form_current_exit: Exit Sub Form_Current_err: MsgBox Err.Description Resume Form_current_exit End Sub
Code:
If Me.Parent.Name = "Work_Order_Details_SubForm"
I really don't want to learn what different function do and where they can be used, I want to learn why I would use a function instead of another and why do I have to bracket some in a syntax and why sometime I must put them in "" instead.
AH! Eureka - I am looking for the "CONVENTION " on how to write VBA
Forgive me English is not my first language, I probably do not make much sense to a lot of people.
Comment