Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Subform insert into statement

Status
Not open for further replies.

nhtraven

Technical User
Dec 10, 2000
114
US
Hi all,

I am trying to insert current data from a subform field into a table. I am using this code, it isnt working.
Dim db As DAO.Database
Set db = CurrentDb()
db.Execute "INSERT INTO tblPayment ([CurrentBal]) Values (" & NewData & ");"
Set db = Nothing

i have this in the CurrentBal controlsource =([Rate]*[Numcalls])

When working with subforms, how does one do this? I assumed it was the same as a regular form. <i know what happens when you assume> = )

It is driving me nuts.

THanks
RAVEN
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top