Append from form to table

  • Thread starter Thread starter umdloti
  • Start date Start date
U

umdloti

Guest
Let me ask this in another way.

How can I append info from an unbound text box on a form to a table.

ie Unbound text box, called Date on
Form1

Need to append this to table Orders, field [Date] ???

Thanks
 
You'll could write some code for the form....

Dim db As Database
Dim rs As Recordset

Set db = CurrentDb
Set rs = db.OpenRecordset("Orders")

With rs
.AddNew
.Fields("Date") = Me.UnboundTextBoxName.Value
.Update
End With

Place this code on a event, e.g. a click of a button
rs.Close
 
Sorry that rs.close should be with the code, to close the recordset
 

Users who are viewing this thread

Back
Top Bottom