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 6539075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:48:49+00:00 2026-05-25T10:48:49+00:00

Please help me! What I have: First, I’m using Access 2007. I have a

  • 0

Please help me!

What I have:

First, I’m using Access 2007. I have a form that include’s a subform. In that subform a have a datasheet from a SQL query which get 3 fields. The first field (Supprimer) his a dummy field to display a hyperlink that will be use has a button:

SELECT "Supprimer", permis.abbreviation, permis.description
FROM permis 
INNER JOIN (clients INNER JOIN clients_permis 
  ON clients.ID=clients_permis.id_clients) 
  ON permis.ID=clients_permis.id_permis;

What I want
I want my “delete” hyperlinks to delete the datasheet selected record has would pressing the “del” key would

My code for onClick event

Private Sub del_Click()

    DoCmd.RunCommand acCmdSelectRecord
    'SendKeys ("{DELETE}")       
    DoCmd.RunCommand acCmdDeleteRecord

End Sub

If I uncommented, the Sendkeys (“{DELETE}”) the record is deleted, but, on my systeme this also triggers the numlock key. Who knows what it can do on other system.

the DoCmd.RunCommand acCmdDeleteRecord command provokes a Run-Time Error: 2046.

At a previous point the above code worked perfectly.

  • 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-25T10:48:49+00:00Added an answer on May 25, 2026 at 10:48 am

    As mentioned in the comments by HK1, here’s what can be done (although it’s workaround):

    Use a continuous form instead of the datasheet.

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

Sidebar

Related Questions

Please help! Background info I have a WPF application which accesses a SQL Server
Please help. I'm using MySQL 5.1.30 Community Edition. I have four tables: nts, operator,
Please help me with T-SQL query in SQL 2008 to get value from between
I might have wandered into wrong direction so please help. I have a page
I cannot understand how this is possible. Please help!! I have an app with
Hi Guys could you please help me refactor this so that it is sensibly
I have a SQL query that I cant wrap my mind around. I do
I have two programs- First one being a C program that writes in to
I have a problem and I couldn't solve it.please help me. I have two
thanks for every help that you guys have given me so far !! :D

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.