[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

How to insert a new record into an empty ACCESS table using GirdView and AccessDataSource

Posted on 2012-03-16
2
Medium Priority
?
583 Views
Last Modified: 2012-03-16
Hi:

We're creating some web application using VS 2010 with Visual Basic.

We try to insert a new record (the 1st record) into an empty ACCESS table, using gridView and AccessDataSource.

We configure GridView to bind with the AccessDataSource and also configure the AccessDataSource for SELECT, INSERT, UPDATE, and DELETE statements.

The problem is that when we run the web page, because the ACCESS table is empty, the GridView does not show up in the page. We could not do anything with GridView because it is invisible.

(NOTES: we can retrieve data from ACCESS table correctly - the GridView displays the data if some rows exist in the table)

If you've some idea how to do this: insert the 1st record into an empty table, using GridView and AccessDataSource, please help.
(We could do it using OleDbConnection, DataSet, and OleDbDataAdapter, ... - we now want to use GridView and AccessDataSource for the sake of code consistence)

Thanks a lot for any help,

Somits
0
Comment
Question by:somits
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 2000 total points
ID: 37731300
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 37731303
Delete your other duplicate question.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question