 |
| Visual Basic 2005 Basics If you are new to Visual Basic programming with version 2005, this is the place to start your questions. For questions about the book:
Beginning Visual Basic 2005 by Thearon Willis and Bryan Newsome, ISBN: 0-7645-7401-9 please, use this forum instead. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Visual Basic 2005 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

August 8th, 2006, 10:46 AM
|
|
Authorized User
|
|
Join Date: Jul 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
updateable query
I used tableadapter to insert records into my access database and it does so perfectly when run using the programs exe file in the bin/debug directory or directly from the vb programmin environment but when i publish the program and try to run it elsewhere it gives me an error that it cannot insert into database cos i'm not using an updateable query. what does it mean and how can i solve this error?
someone please.... help me. it is urgent.
|
|

August 8th, 2006, 11:24 AM
|
|
Friend of Wrox
|
|
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
|
|
If you copied the database to a harddisk from a CD, the database file will be read-only. Perhaps that is it?
Also, if the person running the program does not have write permission to the DB file, that will do it also.
|
|

August 10th, 2006, 09:56 AM
|
|
Authorized User
|
|
Join Date: Jul 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks brian. actually i copied the database from harddisk to CD which made the database readonly. I had to copy it back to the harddisk to remove it from the readonly mode after which i was able to query the database.
i also figured out as i have already written that as long as you are using visual basic 2005 express edition, you have install windows installer 3.1 and dotnet framework 2.0 for you to use your published or built program on any system.
Thanks again...
|
|

August 10th, 2006, 12:29 PM
|
|
Friend of Wrox
|
|
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
|
|
No .NET anything ( VB Express, C#, whatever) will run without the framework in place.
|
|

August 11th, 2006, 10:24 AM
|
|
Authorized User
|
|
Join Date: Jul 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
hmm...It means something is still wrong then i guess i have to still figure it out. I know when i used VB 6 it didnt give me any of such problems.
|
|

August 14th, 2006, 03:58 PM
|
|
Friend of Wrox
|
|
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
|
|
VB 6 depends on VBRun xx.dll. Had you distributed a VB .exe without that, and put it onto a machine without that file, you would have run into the same type of problem.
|
|

August 15th, 2006, 12:46 PM
|
|
Authorized User
|
|
Join Date: Jul 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Ok then so do u know any of such files that VB Express 2005 depends on? I know though that the minute i install the .NET framework it runs. I will like to check it out? Thanks
|
|

August 16th, 2006, 11:42 AM
|
|
Friend of Wrox
|
|
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
|
|
Well, you said it yourself above: The .NET Framework. This is the counterpart to the VBRun DLL.
I have not had much contact with Installer; I donât know what exactly it is used for, when it is required, and so on. But it seems that you discovered that that too is needed.
|
|
 |