473,395 Members | 1,938 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,395 software developers and data experts.

access form search record before delete

Hi,

Would need some thought about using a button of the existing form to search
record before deleting it.

Any quick help is very appreciated.

Steve
Mar 20 '07 #1
4 3974
On Mar 20, 6:32 pm, "Steven" <sche...@verizon.netwrote:
Hi,

Would need some thought about using a button of the existing form to search
record before deleting it.

Any quick help is very appreciated.

Steve

Search for what? Not much to go on.

Mar 20 '07 #2
I am searching ID (pk) for the matching record, then delete it. My thought
is to have a main form of data entry, from which there is an additional
button to open a query asking for the ID then retrieve the record in a
subform. Currently I can delete the record and close the subform, but the
main form have "#deleted" on all columns. Not until you close the main
form and re-open it, they are there.

I would like to know if there is 'refresh' code put in the button or the
Delete Procedure to make the main form sync simultaneously for the record
without re-opening.

Appreciated!
My problem is

"storrboy" <st******@sympatico.cawrote in message
news:11**********************@y66g2000hsf.googlegr oups.com...
On Mar 20, 6:32 pm, "Steven" <sche...@verizon.netwrote:
>Hi,

Would need some thought about using a button of the existing form to
search
record before deleting it.

Any quick help is very appreciated.

Steve


Search for what? Not much to go on.

Mar 21 '07 #3
On Wed, 21 Mar 2007 23:36:57 GMT, "Steven" <sc*****@verizon.netwrote:
>I am searching ID (pk) for the matching record, then delete it. My thought
is to have a main form of data entry, from which there is an additional
button to open a query asking for the ID then retrieve the record in a
subform. Currently I can delete the record and close the subform, but the
main form have "#deleted" on all columns. Not until you close the main
form and re-open it, they are there.

I would like to know if there is 'refresh' code put in the button or the
Delete Procedure to make the main form sync simultaneously for the record
without re-opening.

Appreciated!
My problem is

"storrboy" <st******@sympatico.cawrote in message
news:11**********************@y66g2000hsf.googleg roups.com...
>On Mar 20, 6:32 pm, "Steven" <sche...@verizon.netwrote:
>>Hi,

Would need some thought about using a button of the existing form to
search
record before deleting it.

Any quick help is very appreciated.

Steve


Search for what? Not much to go on.
After the record is deleted in your code put Me.Requery, or if the delete code
is being run from the subform put Me.Parent.Requery

Wayne Gillespie
Gosford NSW Australia
Mar 22 '07 #4
Ste
The Me.parent.requery from subform is not working as the way it should.
I put it in AfterUpdate event.

The subform is open when a button is clicked from mainform, and the delete
action is from the subform.

Don't know what is the next.

Any help is appreciated.
"Wayne Gillespie" <be*****@NOhotmailSPAM.com.auwrote in message
news:i2********************************@4ax.com...
On Wed, 21 Mar 2007 23:36:57 GMT, "Steven" <sc*****@verizon.netwrote:
>>I am searching ID (pk) for the matching record, then delete it. My
thought
is to have a main form of data entry, from which there is an additional
button to open a query asking for the ID then retrieve the record in a
subform. Currently I can delete the record and close the subform, but the
main form have "#deleted" on all columns. Not until you close the main
form and re-open it, they are there.

I would like to know if there is 'refresh' code put in the button or the
Delete Procedure to make the main form sync simultaneously for the record
without re-opening.

Appreciated!
My problem is

"storrboy" <st******@sympatico.cawrote in message
news:11**********************@y66g2000hsf.google groups.com...
>>On Mar 20, 6:32 pm, "Steven" <sche...@verizon.netwrote:
Hi,

Would need some thought about using a button of the existing form to
search
record before deleting it.

Any quick help is very appreciated.

Steve
Search for what? Not much to go on.

After the record is deleted in your code put Me.Requery, or if the delete
code
is being run from the subform put Me.Parent.Requery

Wayne Gillespie
Gosford NSW Australia

Mar 22 '07 #5

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

Similar topics

28
by: Lee Rouse | last post by:
Hello all, This is going to be a rather lengthy "question". I have an Access 2k database, separated front end/back end. Front end copies are on about 30 workstations and used frequently during...
1
by: Jack-of-all-traits | last post by:
This is a big problem and I really need help, no one seems to know how to solve this problem. I want to take the data from a record in a particular a field that contains the names of generic...
4
by: Volumstein | last post by:
Hello, I am spoiled coming from programming in word and excel which offer the "record macro" tool that eliminated most basic syntax confusions that I had. unfortunately msaccess doesn't offer...
3
by: Sebastian C. | last post by:
Hello everybody Since I upgraded my Office XP Professional to SP3 I got strange behaviour. Pieces of code which works for 3 years now are suddenly stop to work properly. I have Office XP...
49
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The...
1
by: Sue | last post by:
I have a main form based on a member list, so that I can add details. I also have a query which takes its parameters from a textbox on the form to search for a surname so that I can delete the...
1
by: Abareblue | last post by:
I have no clue on how to insert a record into access. here is the whole thing using System; using System.Drawing; using System.Collections; using System.ComponentModel;
13
by: royaltiger | last post by:
I am trying to copy the inventory database in Building Access Applications by John L Viescas but when i try to run the database i get an error in the orders form when i click on the allocate...
4
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is...
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...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.