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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dropping unbound fields into a new table

Status
Not open for further replies.

BrettECV

Technical User
Nov 29, 2003
2
AU
I'm new to this Access stuff and I'm playing about with a database at the moment to track training that is taking place in the workplace... Currently I have a new form (completely unbound) and now I'm trying to write the values to a temp table to then run an append query off.. The problem I'm having is taking some of the calculated data from the form and placing it into the new table.. I might be trying the impossible but hoping someone can help.

Brett
 
Hi Brett,

Open a recoreset in VBA code (see open recordset in help) and you can make any assignments to the table that you like from the form controls or anything else you can do in code.

Hope this is a good start,

alr
 
Hi Brett,

Open the table as a recoreset in VBA code (see open recordset in help) and you can make any assignments to the table that you like from the form controls or anything else you can do in code.

Hope this is a good start,

alr

PS form

Dim rsMyRecordset As Recordset
Set rsMyRecordset= New Recordset
rsMyRecordset.Open "select * from tblTableName",_ CurrentProject.Connection, adOpenDynamic, adLockOptimistic
 
Thanks.. It seems like a good start.. I found a website : - had a heap of ideas and some sample code re: extracting data from an unbound form..
Thanks to all who replied and thosewho scratched the brain to try.. :)

Brett
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top