markgrizzle
Programmer
Hi:
My Access 2003 mdb form's combo uses the following AfterUpdate event to load it's subform with SQL Server 2000 data...
Me.SubFormName.Form.RecordSource = vbNullString
sql = "SELECT FieldName FROM TableName Where TableNameID = " & me.MainFormCombo_TableNameID
rs.Open sql,cnn,adOpenDynamic,adLockOptimistic,adCmdText
If Not rs.EOF Then
Set Me.SubFormName.Form.Recordset = rs
Me.SubFormName.Visible = True
End If
rs.Close
This works except for records created using...
DoCmd.DoMenuItem acFormBar, acFile, acSaveRecord
Those records display #Name? in each of SubFormName's controls.
I've confirmed that the records are being loaded in the table, and the sql statement returns the expected results when viewed in the query design window.
Has anyone seen this behavior before?
Thanks in advance,
Mark
My Access 2003 mdb form's combo uses the following AfterUpdate event to load it's subform with SQL Server 2000 data...
Me.SubFormName.Form.RecordSource = vbNullString
sql = "SELECT FieldName FROM TableName Where TableNameID = " & me.MainFormCombo_TableNameID
rs.Open sql,cnn,adOpenDynamic,adLockOptimistic,adCmdText
If Not rs.EOF Then
Set Me.SubFormName.Form.Recordset = rs
Me.SubFormName.Visible = True
End If
rs.Close
This works except for records created using...
DoCmd.DoMenuItem acFormBar, acFile, acSaveRecord
Those records display #Name? in each of SubFormName's controls.
I've confirmed that the records are being loaded in the table, and the sql statement returns the expected results when viewed in the query design window.
Has anyone seen this behavior before?
Thanks in advance,
Mark