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

  • SEARCH
  • Home
  • 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 6984629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:34:26+00:00 2026-05-27T18:34:26+00:00

I utilized the wizard to create Insert Edit Update and Delete statements. Problem is

  • 0

I utilized the wizard to create Insert Edit Update and Delete statements. Problem is they are not work in my grid view. When I go to use them I get an error:

No value given for one or more required parameters.

I was wondering what could be the problem? It queries and displays data ok.

<LoggedInTemplate>
    <asp:LoginStatus ID="LoginStatus1" runat="server" />
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #FFFFFF">
<p style="font-size: 20px">Welcome Back!<br />
Begin Sharing and Reading Space Tips Below!
</p>



<p>&nbsp;Current Posts:
    <asp:GridView ID="GridView1" runat="server" DataSourceID="AccessDataSource1" 
        AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" 
        BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" 
        CellPadding="3" CellSpacing="2" DataKeyNames="Title">
        <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
        <Columns>
            <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" 
                ReadOnly="True" />
            <asp:BoundField DataField="User" HeaderText="User" SortExpression="User" />
            <asp:BoundField DataField="Timeof" HeaderText="Date" 
                SortExpression="Timeof" />
            <asp:BoundField DataField="Post" HeaderText="Post" SortExpression="Post" />
            <asp:CommandField ButtonType="Button" ShowEditButton="True" />
            <asp:CommandField ButtonType="Button" ShowDeleteButton="True" />
        </Columns>
        <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
        <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
    </asp:GridView>

    <asp:AccessDataSource ID="AccessDataSource1" runat="server" 
        DataFile="~/App_Data/Posts.mdb" 
        SelectCommand="SELECT * FROM [UserPost] ORDER BY [Timeof]" 
        DeleteCommand="DELETE FROM [UserPost] WHERE (([Title] = ?) OR ([Title] IS NULL AND ? IS NULL))" 
        InsertCommand="INSERT INTO [UserPost] ([Title], [User], [Timeof], [Post]) VALUES (?, ?, ?, ?)" 
        UpdateCommand="UPDATE [UserPost] SET [User] = ?, [Timeof] = ?, [Post] = ? WHERE (([Title] = ?) OR ([Title] IS NULL AND ? IS NULL))">
        <DeleteParameters>
            <asp:Parameter Name="Title" Type="String" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="User" Type="String" />
            <asp:Parameter Name="Timeof" Type="DateTime" />
            <asp:Parameter Name="Post" Type="String" />
            <asp:Parameter Name="Title" Type="String" />
        </UpdateParameters>
        <InsertParameters>
            <asp:Parameter Name="Title" Type="String" />
            <asp:Parameter Name="User" Type="String" />
            <asp:Parameter Name="Timeof" Type="DateTime" />
            <asp:Parameter Name="Post" Type="String" />
        </InsertParameters>
    </asp:AccessDataSource>

</p>

    <table>
    <tr><td> <asp:Label ID="Label1" runat="server" Text="User: "></asp:Label></td><td> 
        <asp:TextBox ID="TextBox1" runat="server" ValidationGroup="createpost"></asp:TextBox></td></tr>
    <tr><td><asp:Label ID="Label2" runat="server" Text="Title: "></asp:Label></td><td><asp:TextBox ID="TextBox2"
            runat="server" ValidationGroup="createpost"></asp:TextBox></td></tr>
    <tr><td><asp:Label ID="Label3" runat="server" Text="Date: "></asp:Label></td><td> <asp:TextBox ID="TextBox3"
            runat="server"></asp:TextBox></td></tr>
    <tr><td valign="top"><asp:Label ID="Label4" runat="server" Text="Story: "></asp:Label></td><td valign="top">
        <asp:TextBox ID="TextBox4" runat="server" Height="129px" Width="474px" 
            TextMode="MultiLine"></asp:TextBox></td></tr>
    </table>
        <asp:Button ID="makepost" runat="server" Text="Post My Tip/Story" 
            ValidationGroup="createpost" onclick="makepost_Click" /><br />

</div>

</LoggedInTemplate><AnonymousTemplate>

    <asp:Login ID="Login1" runat="server" ForeColor="White">
    </asp:Login><br /><div style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color:#FFFFFF">Please Register to be begin viewing and sharing your 
    <br />Star Wars Old Republic Tips and Stories!</div>
</AnonymousTemplate>
</asp:LoginView>

  • 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-05-27T18:34:27+00:00Added an answer on May 27, 2026 at 6:34 pm

    I’m not very good with access now, but as I can see (and tested) in DeleteCommand you specify 2 parameters but just declare 1, this is not like SQL Server where you name the parameters and you can use one parameter a lot of time in the query, tha same occures in UpdateCommand but with more parameters… see in Where statement.

    Try to do something like this:

    DeleteCommand="DELETE FROM UserPost WHERE (Title = ?)" 
    UpdateCommand="UPDATE UserPost SET [User] = ?, Timeof = ?, Post = ? WHERE (Title = ?)"
    

    I tested and it worked.

    Edit: You most have an ID (unique primary key) in your table to work with it and not with the Title field.

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

Sidebar

Related Questions

I have a doubt regarding RMI. In RMI we create remote object(s) and use
I'm using a singleton class to save all my settings info. It's first utilized
I'm trying to produce a wizard using the Wizard class (org.eclipse.jface.wizard.Wizard) Basically where I
To prep my question defensively, I've utilized Google, Bing and StackOv prior to posting
I'm using the Agatha request/response library (and StructureMap, as utilized by Agatha 1.0.5.0) for
Apart from graphical estimation of linearity (gaze-at-scatterplot method), which is utilized before applying some
Hey guys..I am designing a set-up wizard using CPropertySheet and CpropertyPage in MFC application...I
I have an application that utilized libraries which are published under different licences like
I'm trying to figure out this problem for one of my comp sci classes,
When loading something such as a software update in Windows 7 there is often

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.