473,605 Members | 2,637 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can i inactivate a row

17 New Member
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 1030
Killer42
8,435 Recognized Expert Expert
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
9101
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 droping it? Thanks in Advance, Praveen
0
1011
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 Linux. Since I love learning new stuff I agreed to lend a hand (what a difference from the world of Windows!). Basically he wants his site to have three levels of users (with a possibility of a few more later if the idea catches on): 1. Admins...
3
3574
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 images as buttons for the nav bar, with a simple JavaScript rollover to highlight the button that the mouse is over. When I click on a button that link loads into frame2... My question is how can I then deactivate that link and change the button...
3
1925
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 catch the event of the browser's "back" functionality from the menu bar. Does anybody have an idea how can I catch this with JavaScript? Thank you very much for your answerz John
1
1282
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 evaluates to an active form like:
7
1579
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 don't thin it is the backcolor or something like that because the error does not occur on everyone's workstation. Could be it be the video card or tied to memory. Also when I get the error at the office computer if I remote connect to that...
1
1248
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 figure out how this might work. There are tons of examples out there on how to filter rows out of the table. I cannot however find one that shows how to filter columns. Can anyone point me to information on this, or tell me how to do it?
9
310
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 object c'tor argument. ok, let me explain in a different language; but before, here is the expected output preform Thread task. preform non-thread task.
1
1109
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 another on top. How do i do this and what kind of frame should i use? (thankful for whole code on how to create a pop-up like this). thank you!
0
7934
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8425
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8071
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8288
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6743
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
3912
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3958
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1541
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1271
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.