Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7822801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T08:02:43+00:00 2026-06-02T08:02:43+00:00

I have a problem that I have been trying to tackle for the last

  • 0

I have a problem that I have been trying to tackle for the last 24 hours so to avoid me going insane I thought I’d ask someone for help with my problem!

I am using Visual Web Developer, and in this I have an asp Gridview element which selects information from my AccessDataSource. (Which I might add works perfectly fine.)

My error comes when I try to update the information in the Gridview. My update SQL works fine in Access, however in VWD it throws no error message but fails to save the new data to the database. I have set the parameters in asp for the update command, and I have the ‘DataKeyNames’ set, too.

Can anyone help me with this? I am relatively new to this and I just can’t see where I am going wrong. I have been doing extensive searching online for a good while and still couldn’t quite see it, so I thought my next best shot was to ask on here.

Many thanks in advance. 🙂

My ASP.net code:

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
DataSourceID="AccessDataSource1" DataKeyNames="MemberID" 
style="z-index: 1; left: 0px; top: 147px; position: absolute; height: 133px;     
width:499px">
<Columns>
<asp:CommandField ShowEditButton="True" />
<asp:BoundField DataField="RaceID" HeaderText="RaceID" SortExpression="RaceID" />
<asp:BoundField DataField="MemberID" HeaderText="MemberID" SortExpression="MemberID" />
<asp:BoundField DataField="MemberName" HeaderText="MemberName"   
SortExpression="MemberName" />
<asp:BoundField DataField="PersonalTime" HeaderText="PersonalTime" 
SortExpression="PersonalTime" />
<asp:BoundField DataField="FinishPosition" HeaderText="FinishPosition" 
SortExpression="FinishPosition" />
<asp:BoundField DataField="Points" HeaderText="Points" 
SortExpression="Points" />
</Columns>
</asp:GridView>

<asp:AccessDataSource ID="AccessDataSource1" runat="server"     
DataFile="~/App_Data/myDatabase.mdb" 

SelectCommand="SELECT tblResult.RaceID, tblResult.MemberID, tblMember.MemberName, 
tblResult.PersonalTime, tblResult.FinishPosition, tblPoint.Points FROM ((tblRaceType  
INNER JOIN (tblRace INNER JOIN (tblMember INNER JOIN tblResult ON tblMember.MemberID = 
tblResult.MemberID) ON tblRace.RaceID = tblResult.RaceID) ON tblRaceType.RaceTypeID = 
tblRace.RaceTypeID) INNER JOIN tblPoint ON tblResult.FinishPosition = tblPoint.
[Position] AND tblRaceType.RaceTypeID = tblPoint.RaceTypeID) WHERE (tblResult.RaceID =    
?) AND (tblPoint.RaceTypeID = ?) ORDER BY tblResult.FinishPosition" 

UpdateCommand="UPDATE [tblResult] SET PersonalTime = ?, FinishPosition = ? WHERE  
MemberID = ? AND RaceID = ?">

<SelectParameters>
<asp:SessionParameter DefaultValue="0" Name="?" SessionField="raceID" />
<asp:SessionParameter DefaultValue="0" Name="?" SessionField="raceTypeID" />
</SelectParameters>

<UpdateParameters>
<asp:Parameter Name="PersonalTime" Type="String"/>
<asp:Parameter Name="FinishPosition" Type="Int64" />
<asp:Parameter Name="MemberID" Type="Int64" />
<asp:Parameter Name="RaceID" Type="Int64" />
</UpdateParameters>
</asp:AccessDataSource>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T08:02:45+00:00Added an answer on June 2, 2026 at 8:02 am

    For anyone else with the same problem:

    I had to just wrap my already existing VB code in “If Not Page.IsPostBack”. Think this was interfering with the Update by re-loading the page and before it got to execute the Update command.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem that I have been trying to figure out for hours
I have been Googling a problem that I have with trying to integrate the
I have a problem that I have been trying to find a solution for
I have a problem that I have been trying to solve since days! I
I have a problem here and need your help. I've been trying to capture
I have a serious problem that i have been trying to debug for a
I've been trying to solve these problem for last two hours but seems like
I have been trying to tackle this problem , but I am having difficulty
I have a problem. I've been trying to tackle it for a while now
I have a problem that I have been trying to solve for a couple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.