We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,231 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Help me

Hi guys!I'm currently making a database project and I want to update an access
database.
I connected the database using this sql command
'select*from word'
And I tryied to update the database using this code
ds.tables('word').rows(0).item(1)=”cat” Dim cb as new oledb.oledbcommandbuilder(da)
da.update(ds,”word”)
da is a data adapter
ds is a data set
My problem is it giving me an error in runtime.
Here is the error message.
"Dynamic Sql generation for the update command is not supported against a select
command that does not return any key column information"

Any ideas? -Regards

3
Contributors
2
Replies
2 Hours
Discussion Span
1 Year Ago
Last Updated
3
Views
anuradha1
Newbie Poster
2 posts since Feb 2012
Reputation Points: 9
Solved Threads: 0
Skill Endorsements: 0

Your Select query didn't include a Primary Key

Phasma
Junior Poster in Training
81 posts since Nov 2008
Reputation Points: 21
Solved Threads: 21
Skill Endorsements: 0

select * from word

Selects all fields in the table including the primary key (assuming one is defined). It's a little hard to tell if the OP included the spaces between the query tokens, though.

Reverend Jim
Carpe per diem
Moderator
3,605 posts since Aug 2010
Reputation Points: 561
Solved Threads: 449
Skill Endorsements: 32

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0605 seconds using 2.69MB