473,472 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

working with selected records in a datasheet

2 New Member
I have a SQL view linked into a ms access application. That view is used in a subform and in datasheet view. I want to select multiple records and click on a button that will delete those selected rows. I need the button because the view has 1 table and a subquery joined in the view and will not allow me to delete from the main table in that view. So, I figured I can select the rows I want to delete and then create a button that will send a passthru command to delete those records from the main table. Can you help?
Oct 24 '13 #1
3 1230
zmbd
5,501 Recognized Expert Moderator Expert
abenitez77:
"View" tends to make me think of SQLServer or MYSQL... so I need you to clarify a few things:
Are you using just Access?
IF not then what software are you using?
Oct 28 '13 #2
abenitez77
2 New Member
I'm using ms access 2007 for front end and SQL Server 2008 for backend.
Oct 28 '13 #3
Rabbit
12,516 Recognized Expert Moderator MVP
In certain situations, you can move the subquery to the where clause and that will allow you to delete from the view. But to determine that we would need to see the SQL.
Oct 28 '13 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Leon | last post by:
Hello again! I post this message once again because I've noticed this kind of behavior in: A2k (mdb,adp) and RunTime. The problem is: When I'm changing view to DS then I'm selecting fiew...
3
by: DD | last post by:
I have a mainform with a subform. > The main form has a dropdown box "chooseMonth", in the afterupdate event > i requery the subform so all records with the same date are viewed. > Now i only want...
2
by: David | last post by:
Hi, I have an order form which has a field 'ProductID'. This form has a button on each record to open a new form linked by ProductID. This new form is a continuous form and obviously, only...
2
by: indrag91 | last post by:
hai, i am using access database. Iam selecting few records based on a condition. For e:g select * from stud where avg>90 and placing these records in a multiselect list box. for e:g if there 10...
10
by: Michael R | last post by:
Hello to all. In what way can I update a certain selected records' values on a datasheet subform using a command button which is located on the main form? Thanks and cheers.
4
by: =?Utf-8?B?bWFyeGk=?= | last post by:
Now I need to lock the selected records for some time and others can not update these records meanwhile. How can I do? any help will be very appreciated!! -- marxi
7
by: Toral Shah | last post by:
hello all!!!! i have a program of voucher entry.... there are many records in the table Payment and voc_no is a primary key and auto numbered... now i want only selected records to appear in my...
7
by: mukeshrasm | last post by:
hello every one i want to delete the selected records from database. selection is based on check box. so when user will select any check box it will delete the corresponding records from database....
1
by: eneyardi | last post by:
How to filter selected records in a report? for example: i have a form name ADM List, the default view is split form so that i can view all the records. my report name is ADM Report. in ADM List i...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.