On May 19, 2:15 pm, Rich P <rpng...@aol.co mwrote:
For general purpose operations - the built in macros are fairly ideal
because they don't require any maintenance. But if you need to
customize some operation - the macro is not the most ideal way to go
because they are not easy to customize. Thus, you would use VBA to
write custom procedures/functions.
>
As for "refreshing " your listbox with the current rows in your table -
just add this to the sample procedure:
>
Private Sub Command1_Click( )
DoCmd.SetWarnin gs False
If MsgBox("Do you want to delete this record?",vbYesN o, "Delete Record
Yes/No") = vbYes Then
DoCmd.RunSql "Delete * From tblPars Where PartNumber = '" & txtFind &
"'"
End If
listbox1.Rowsou rce = "Select fldx From tblParts"
listbox1.Requer y
Me.Requery
DoCmd.SetWarnin gs True
>
End If
>
Rich
>
*** Sent via Developersdexht tp://www.developersd ex.com***
because they don't require any maintenance. But if you need to
customize some operation - the macro is not the most ideal way to go
because they are not easy to customize. Thus, you would use VBA to
write custom procedures/functions.
>
As for "refreshing " your listbox with the current rows in your table -
just add this to the sample procedure:
>
Private Sub Command1_Click( )
DoCmd.SetWarnin gs False
If MsgBox("Do you want to delete this record?",vbYesN o, "Delete Record
Yes/No") = vbYes Then
DoCmd.RunSql "Delete * From tblPars Where PartNumber = '" & txtFind &
"'"
End If
listbox1.Rowsou rce = "Select fldx From tblParts"
listbox1.Requer y
Me.Requery
DoCmd.SetWarnin gs True
>
End If
>
Rich
>
*** Sent via Developersdexht tp://www.developersd ex.com***
SA
Leave a comment: