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

2 quick questions 1

Status
Not open for further replies.

ossse

Programmer
Jun 26, 2007
49
US
I have two quick questions, where I'm trying to use Modules in MS Access

1- Is it possible to create a table that is the same as a query (copy the query as a table)?

2- Is it possible to use a Module to change the data type of a table? (change a Text to a Memo)

If you could also point me in the right direction for how to do either of these, it would be great.

Help with either or both would be much appreciated, THANKS
 
A Make Table Query will create a table from a query. You can use Alter Table to change the field type. It will truncate the fields without warning and all data will be permanently lost:

[tt]ALTER TABLE tblTable ALTER COLUMN ThisMemo TEXT (255)[/tt]
 
Thank you...

can you do the 'Make Table Query' using a Module? If so, what command do you use?
 
Something like:
Code:
strSQL="SELECT * INTO NewTable FROM tblTable"
db.Execute strSQL
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top