M
Mark J Kubicki
I'm adding a record at a subform to a table which requires some data from
the main (calling) form; however,
the (2) fields of data on the main form are being returned as having no
value (although they do)
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("FixtureCatalogueCostHistory", dbOpenDynaset)
With rst
..AddNew
!Date = datDate
!Manufacturer = Me.Manufacturer 'data being called from main form
!CatalogNumber = Me.CatalogNumber 'data being called from main form
!Amount = txtAmount
!Source = txtSource
!CostType = txtCostType
!note = txtNote
!Author = txtAuthor
..Update
End With
any suggestions would be a great help, thanks in advance,
mark
the main (calling) form; however,
the (2) fields of data on the main form are being returned as having no
value (although they do)
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("FixtureCatalogueCostHistory", dbOpenDynaset)
With rst
..AddNew
!Date = datDate
!Manufacturer = Me.Manufacturer 'data being called from main form
!CatalogNumber = Me.CatalogNumber 'data being called from main form
!Amount = txtAmount
!Source = txtSource
!CostType = txtCostType
!note = txtNote
!Author = txtAuthor
..Update
End With
any suggestions would be a great help, thanks in advance,
mark