Wrox Programmer Forums
|
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
 
Old August 8th, 2006, 10:46 AM
Authorized User
 
Join Date: Jul 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to dilionyi
Default 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.

 
Old August 8th, 2006, 11:24 AM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

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.
 
Old August 10th, 2006, 09:56 AM
Authorized User
 
Join Date: Jul 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to dilionyi
Default

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...

 
Old August 10th, 2006, 12:29 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

No .NET anything (VB Express, C#, whatever) will run without the framework in place.
 
Old August 11th, 2006, 10:24 AM
Authorized User
 
Join Date: Jul 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to dilionyi
Default

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.

 
Old August 14th, 2006, 03:58 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

VB 6 depends on VBRunxx.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.
 
Old August 15th, 2006, 12:46 PM
Authorized User
 
Join Date: Jul 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to dilionyi
Default

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


 
Old August 16th, 2006, 11:42 AM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

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.





Similar Threads
Thread Thread Starter Forum Replies Last Post
When is a query updateable? donevco Access 2 January 31st, 2007 11:56 AM
help me ! can't updateable query ! 123123 Classic ASP Databases 1 April 18th, 2005 08:54 AM
You must use an updateable query faisar ASP.NET 1.0 and 1.1 Basics 3 July 2nd, 2004 06:59 AM
Operation must use an updateable query chaos2003 Classic ASP Databases 4 August 22nd, 2003 03:04 PM
Updateable Query Error hoffmann Classic ASP Databases 2 August 13th, 2003 09:54 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.