hi

i'm designing a management system using visual studio 2008 and i'm using a local database(.sdf). i'm kinda new at vb.net and from wat i've read, i need to design a dataset that connects to the database.

i defined my tables in the dataset and the.sdf database, my problem is when i try to call the following command:

selstr = "Select housingID, houseType, description from Housing"
da = New SqlDataAdapter(selectStr, conn)
da.fill(datasetname, tablename) .......

i get an error at this point saying the datasetname and tablename are expressions

Recommended Answers

All 2 Replies

danielagaba,
Are you developing a device application?

danielagaba,
Are you developing a device application?

a windows application

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.