473,325 Members | 2,480 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,325 software developers and data experts.

How can i inactivate a row

I want to inactivate a row such that it is not deleted from the table but it is not visible when i click the search button,plz give me the code and query

thanx
Feb 16 '07 #1
1 1019
Killer42
8,435 Expert 8TB
I want to inactivate a row such that it is not deleted from the table but it is not visible when i click the search button,plz give me the code and query
Before any of us can really help with that, I think we need to know a lot more about how you are accessing your database, how you are searching, and so on. And what version of VB are you using?

Just as a general concept, though, you could "logically delete" a record by setting some flag on it which is skipped in your query. In other words, let us assume you had a Boolean field called SortOfDeleted. Any SQL query that you build could include AND [SortOfDeleted] = False. That way, as soon as you set that field to True, the record will no longer show up in your queries.
Feb 16 '07 #2

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

Similar topics

6
by: Praveen | last post by:
Hi All, I Created a Oracle user(schema) in my database. Now instead of droping the oracle user(schema), i want to inactivate it. Can anyone tell me how to inactivate the user instead of...
0
by: Bill McAlister | last post by:
Hello all, I am really new to MySQL and PHP. A friend has recently asked me to help him create some simple dynamic web pages on his hosted account. His host is running MySQL and PHP on Debian...
3
by: Chris Wilkinson | last post by:
Hi there, I'm creating a frames website, which consists of a nav bar down the left of the screen (name="frame1") and a content frame filling the right hand side (name="frame2"). I've used nice...
3
by: John | last post by:
Hi, I have to catch the "back" browser's functionality from the menu. I already can catch the key-stroke combination for IE + NS/Firefox and inactivate the mouse right-button, but I still have to...
1
by: Michael B Allen | last post by:
I have a macro that can be used like: E(errno); but for reasons of brevity I frequently use the form: E(errno = EINVAL); But I would like to be able to have two definitions such that it...
7
by: Richard | last post by:
If the grid is dragged off the screen and back on the data is visible. Tried a dg.refresh() and Inactivate(). Can I do this by overriding custom base class OnPaint that my form inherits from? I...
1
by: Bruce W.1 | last post by:
I've got a dataset with a couple of table columns that I don't want to show in a DataGrid. But I want to leave the columns in the dataset. I passed the DataSet thru a DataView, but I can't...
9
by: Gary Wessle | last post by:
Hi in the attempt below, I intend to use 2 derived classes whose objects c'tor fires a base class method which build a string "main_menu" which is a concatenation of the strings for each derived...
1
by: ogglaton | last post by:
Hi!! I'm buildning a minesweeper and when the game is won, i want to inactivate the game board and have a pop-up saying "you won". I've heard that it's possible to inactivate a frame by opening...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.