C
Christopher Glaeser
I implemented a FAX button that appends a record to tblFaxLog and then opens
frmFaxLog. Here is the code for btnFax_Click:
Dim stDocName As String
Dim stLinkCriteria As String
Dim cmd As ADODB.Command
Dim longRecs As Long
Set cmd = New ADODB.Command
Set cmd.ActiveConnection = CurrentProject.Connection
cmd.CommandType = adCmdStoredProc
cmd.CommandText = "qryFaxLogAppendWorkOrderRealtor"
cmd.Execute longRecs, Array(Me.WorkOrderID)
stDocName = "frmFaxLog"
DoCmd.OpenForm stDocName, , , stLinkCriteria
How do I open frmFaxLog at the newly appended record?
Best,
Christopher
frmFaxLog. Here is the code for btnFax_Click:
Dim stDocName As String
Dim stLinkCriteria As String
Dim cmd As ADODB.Command
Dim longRecs As Long
Set cmd = New ADODB.Command
Set cmd.ActiveConnection = CurrentProject.Connection
cmd.CommandType = adCmdStoredProc
cmd.CommandText = "qryFaxLogAppendWorkOrderRealtor"
cmd.Execute longRecs, Array(Me.WorkOrderID)
stDocName = "frmFaxLog"
DoCmd.OpenForm stDocName, , , stLinkCriteria
How do I open frmFaxLog at the newly appended record?
Best,
Christopher