473,386 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

OnDelete modification of joined table.

I've got a form that writes the completion date of the 'batch' we use
into another table to show another group in our office that the first
steps have been done. However, sometimes the batch needs to be
revised and samples removed... but when you delete the rows out of the
datasheet view it doesn't remove the data from the attached table.

Since sometimes they select multiple rows in a datasheet to delete I
want to do something like

for each datasheet.isselected

DoCmd.RunSQL("UPDATE <Table>, SET Completed = [Prepdate], Validated =
GetDate() FROM " & _
"<tableINNER JOIN <table2" & _
"ON <table>.TestNum = <table2>.TestNum " & _
"WHERE (((<table2>.BatchID)='" & Me.BatchID &
"') " & _
"AND ((<table2>.ValidPrep)=1))")

next

However I cannot figure out how to do it for only the selected rows
intended for deletion.

I've fooled around with seltop and selheight, but I cannot get it to
page through the selected results and modify only those rows. can
anyone give me any pointers on this?

Sep 14 '07 #1
0 1024

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Long Tran | last post by:
Hello The DirectoryMonitor sample codes demonstrate the .NET Framework System.IO FileSystemWatcher object works nicely but display only short file name (for example test.bdrg become test~1.bdr)...
2
by: Mike Leahy | last post by:
Hello all, This question is related to updating tables - is there any way to calculate or update the values in a column in a table to the values in a field produced by a query result? An...
1
by: Michael | last post by:
I have a query that uses two joined tables. The query contains data. I would like to pull in a data drom another table but when I add that table to the query design and make the join,the existing...
0
by: MA | last post by:
Hi, I'm strugling with tho following case: I use a datalist in my asp.net application to present an interface to the use where he/she can modify some database tables. In de "update mode" I...
5
by: zMisc | last post by:
Are there any tricks in updaitng a JOINed recordset? I joned to tables and when I try to change a field on the recordset and update it, I get this error: "Unknown column 'CCDE' in 'where...
4
by: Frank List | last post by:
Hi, I've run into this problem many times and have not found a good solution yet. Here's what I have: table ParentTable - the "1" table table ChildTable- the "many" table ParentTable...
1
by: ramsai8 | last post by:
HI, i struck with a problem when i was deleting arow from database which is having primary key in one table and that one is also having foureign key in second table the error is like...
2
by: ramsai8 | last post by:
HI, i struck with a problem when i was deleting arow from database which is having primary key in one table and that one is also having foureign key in second table the error is like this ...
1
rwbarrette
by: rwbarrette | last post by:
Hi all, I just joined 'the scripts' after a year of using it as a great resource, mostly for Python. However, I've been beating my head in for a while now trying to find a solution for a problem...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.