ShaneMan said:txtName = [LastName] & ", " & [FirstName]
Was pretty proud of myself when I finally figured out to how to do it too!
DoCmd.maximize
Rich said:Why write any when you can just copy somebody elses?
Function McrImportCCC_copy()
On Error GoTo McrImportCCC_copy_Err
DoCmd.OpenTable "TbCCC", acNormal, acEdit
DoCmd.RunCommand acCmdSelectAllRecords
DoCmd.SetWarnings False
DoCmd.RunCommand acCmdDeleteRecord
DoCmd.SetWarnings False
DoCmd.Echo True, ""
DoCmd.TransferText acImportDelim, "Ccc Import Specification", "TbCCC", "C:\ccc.txt", False, ""
DoCmd.Close acTable, "TbCCC"
McrImportCCC_copy_Exit:
Exit Function
McrImportCCC_copy_Err:
MsgBox Err.description
Resume McrImportCCC_copy_Exit
End Function
C: Print "Hello Colin"FoFa said:print "Hello World"
Sub Combo254_AfterUpdate()
' Find the record that matches the control.
Me.RecordsetClone.FindFirst "[Partij-ID] = " & Me![Combo254]
Me.Bookmark = Me.RecordsetClone.Bookmark
End Sub
jsanders said:That's good Barry.
Still one of my favorites.
10 CLS
20 PRINT "Luke is Cool!!!"
30 GOTO 20
jsanders said:What was the first piece of VBA code you ever wrote?
I know mine.
rak said:Just out of curiosity JS, what was your last piece ?
rak said:Just out of curiosity JS, what was your last piece ?
Private Sub Status_AfterUpdate()
On Error GoTo Err_Status_AfterUpdate
Dim stDocName As String
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
DoCmd.SetWarnings False
stDocName = "QryServiceStatusAppend"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Me.TblServiceStaus_subform.Requery
DoCmd.SetWarnings True
Exit_Status_AfterUpdate:
Exit SubErr_Status_AfterUpdate:
MsgBox Err.Description
Resume Exit_Status_AfterUpdate
End Sub
Don't you mean "Goodbye cruel world!"?indesisiv said:My last one was:
msgbox "Goodbye world!"
Steve
Kraj said:Don't you mean "Goodbye cruel world!"?