?
Solved

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

Posted on 2012-03-16
2
Medium Priority
?
573 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
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.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Suggested Courses

801 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