Solved

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

Posted on 2012-03-16
2
545 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
  • 2
2 Comments
 
LVL 83

Accepted Solution

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

Expert Comment

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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

856 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