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

Function to create table

Status
Not open for further replies.

moremon

Technical User
May 31, 2001
3
US
Hi all,
I was successful in creating a table with three fields from within a function by using the "CreatetableDef". My problem is, how do I assign values to the three fields from within the same function?


Thanks
 
You can use DoCmd.RunSQL to run a SQL statement such as an Append query or an Update query to add data to your table after it's been created. Don't know the SQL statement you need? Create a query that does what you want in the normal query designer, click View-->SQL View and copy paste the statement that comes up into your code.

HTH Joe Miller
joe.miller@flotech.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top