jerryczarnowski
Registered User.
- Local time
- Today, 14:44
- Joined
- Jan 29, 2012
- Messages
- 31
Hello..first time I've used a forum..here it goes.
I have some VBA code in a click event that Creates a table then attempts to create a form with the new table as the data source. After execution, a form is created but no records are visible and the record selector shows 1 of 122. Any suggestions? I am using Access 2010 on Windows 7. Code below:
' Create a form based on tool assemblies table
Dim frmToolAssemblies As Form
Set frmToolAssemblies = CreateForm
With frmToolAssemblies
.RecordSource = "Tool Assemblies"
.Caption = "testing"
.AllowFormView = True
.DataEntry = False
End With
DoCmd.OpenForm frmToolAssemblies.Name, acFormDS
' End of form creation
DoCmd.SetWarnings True
myRecordset.Close
Set myRecordset = Nothing
Set myConnection = Nothing
End Sub
I have some VBA code in a click event that Creates a table then attempts to create a form with the new table as the data source. After execution, a form is created but no records are visible and the record selector shows 1 of 122. Any suggestions? I am using Access 2010 on Windows 7. Code below:
' Create a form based on tool assemblies table
Dim frmToolAssemblies As Form
Set frmToolAssemblies = CreateForm
With frmToolAssemblies
.RecordSource = "Tool Assemblies"
.Caption = "testing"
.AllowFormView = True
.DataEntry = False
End With
DoCmd.OpenForm frmToolAssemblies.Name, acFormDS
' End of form creation
DoCmd.SetWarnings True
myRecordset.Close
Set myRecordset = Nothing
Set myConnection = Nothing
End Sub