A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

create a table code



 
 
Thread Tools Display Modes
  #1  
Old August 7th, 2004, 10:04 PM
Jeff G
external usenet poster
 
Posts: n/a
Default create a table code

I would like to programically create a table just before
opening a form and populate the table with an existing,
non updatable recordset. When the form is open, it will
contain information from the created table which will then
be updatable. Any suggestions on code to use for this?

Thanks
Jeff G
  #2  
Old August 7th, 2004, 10:42 PM
Tim Ferguson
external usenet poster
 
Posts: n/a
Default create a table code

"Jeff G" wrote in
:

I would like to programically create a table just before
opening a form and populate the table with an existing,
non updatable recordset.


Get the SQL for the existing nonupdateable recordset and turn it into a
INSERT INTO YourNewTable
SELECT etc etc

command, then execute it. This is an append query into the new temp table.

When the form is open, it will
contain information from the created table which will then
be updatable.


I do not understand how this will help you though. In most cases, a
recordset is nonupdateable because it is not possible to know which record
belongs to a particular row in the recordset, so you may not be able to
store any changes that the user makes anyway.

Hope that helps


Tim F



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Select records Ricoy_Chicago General Discussion 6 July 16th, 2004 07:12 PM
Name not showing ID is René Setting Up & Running Reports 11 June 29th, 2004 01:40 AM
Adding selected data (using code atached to cmd button from a form) to a table Chris Using Forms 0 May 26th, 2004 12:12 PM


All times are GMT +1. The time now is 09:03 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.