I need to make a form in access with the usual text controls and 3 buttons : Add Modify and Delete... I have done this kind of stuff in VB but never in VBA...I thought it would be very similar...but when I looked at some sample code that was given to me.. I did not make any sense to me...neither do I have any access to any VBA books....
a) Can anyone point me to a VBA tutorial\code sample for Data Entry Forms in particular...ones with Add Modify Delete Find etc. in them ???
b) I have a code sample right here that is not making any sense to me...makes sense to you ?
VB Code:
Private Sub cmdFind_Click() On Error GoTo Err_cmdFind_Click Me!frmEquipSummary.Requery DoCmd.RepaintObject Me!txtEquipID = [Forms]![frmEquipMain]![frmEquipSummary]![txtEquipID] Err_cmdFind_Click: Exit Sub End Sub
a)...how does this syntax work...Me!frmEquipSummary.Requery ?
b) I couldnt find this object DoCmd defined anywhere...is this a part of some standard library thing or what
c) What is the whole deal with these square brackets in the 3rd statement




Reply With Quote