Re: Create View, Index
- From: "Allen Browne" <AllenBrowne@xxxxxxxxxxxxxx>
- Date: Wed, 5 Nov 2008 10:39:12 +0900
Some of these depend on the library you use to execute the query, i.e. they might work only if executed under ADO (not DAO.)
Here's an exmaple of how to create a view with ADO:
http://allenbrowne.com/func-ADO.html#CreateViewAdo
or with ADOX:
http://allenbrowne.com/func-ADOX.html#CreateViewAdox
Here are some examples of creating indexes and keys with ADOX:
http://allenbrowne.com/func-ADOX.html#CreateIndexesAdox
http://allenbrowne.com/func-ADOX.html#CreateKeyAdox
Finally, you can use the DAO object library to create a query (view or procedure):
http://allenbrowne.com/func-DAO.html#CreateQueryDAO
or indexes:
http://allenbrowne.com/func-DAO.html#CreateIndexesDAO
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Sol" <Sol@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:E163237E-8FDB-42DA-8F23-CB7482A2A19F@xxxxxxxxxxxxxxxx
I need help in figuring out how to do the CREATE VIEW, CREATE INDEX function.
Here are some of the exercises I need to do:
Create a view named PenguinBooks. It consists of the book code, book title,
book type, and book price for every book published by Penguin USA. Display
the data in the view.
Create the following indexes.
Create an index named BookIndex1 on the PublisherName field in the
Publisher table.
I followed every rule possible, but came up empty.
An error message pops up rejecting the operation.
Any suggestions?
Sol
.
- Follow-Ups:
- Re: Create View, Index
- From: Sol
- Re: Create View, Index
- References:
- Create View, Index
- From: Sol
- Create View, Index
- Prev by Date: Suming Records
- Next by Date: Re: Birthdays within five days
- Previous by thread: Create View, Index
- Next by thread: Re: Create View, Index
- Index(es):
Relevant Pages
|