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

I have a search button which adds the duplicate reords when trying to see new cntr

Expand|Select|Wrap|Line Numbers
  1. Private Sub CenterSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCenterSearch.Click
  2.  
  3.         'Center name is required.  If it not there, ask for it.  
  4.         '   (user can delete it if record is not needed).
  5.         If Me.fCenterName.Text = Nothing Then
  6.             MsgBox("Practical Test Center name is required." & (Chr(13) + Chr(10)) _
  7.                 & "Please enter a Practical Test Center name.", MsgBoxStyle.Exclamation + MsgBoxStyle.OKOnly, "No Test Center Name")
  8.             Me.fCenterName.Focus()
  9.             Exit Sub
  10.         End If
  11.  
  12.         ' check for displayed records
  13.         CheckforDisplayedRecords()
  14.  
  15.  
  16.         If PrcTestCenterDatesBeingUsed = True Then
  17.             PrcTestCenterDatesDataSet.Clear()
  18.             PrcTestCenterDatesDataSet.Dispose()
  19.         End If
  20.  
  21.         If ArchivePrcTestCenterDatesBeingUsed = True Then
  22.             ArchivedPrcTestCenterDatesDataSet.Clear()
  23.             ArchivedPrcTestCenterDatesDataSet.Dispose()
  24.         End If
  25.  
  26.  
  27.         ' Set the variable to only close the form, not the application
  28.         DoNotExitApp = True
  29.  
  30.         ' Close this screen
  31.         Me.Close()
  32. End Sub
Feb 3 '10 #1
2 1053
tlhintoq
3,525 Expert 2GB
TIP: When you are writing your question, there is a button on the tool bar that wraps the [code] tags around your copy/pasted code. It helps a bunch. Its the button with a '#' on it. More on tags. They're cool. Check'em out.
Feb 3 '10 #2
tlhintoq
3,525 Expert 2GB
I have a search button which adds the duplicate reords when trying to see new cntr
Ok. You know what you have.

What you don't have is a question. Nobody here knows why you posted this since you haven't asked anything. What is it you are looking for?

I recommend you read the FAQ about How to ask a good question so the volunteers will be able to help you.
Feb 3 '10 #3

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

Similar topics

0
by: mm | last post by:
Can someone with Win 2K please help me here. Best yet, can some MVP duplicate it and report it to MS. I can't find any reference to this issue on the Web, or in MS Knowledge Base. I have been...
2
by: Mike | last post by:
My page populates a table with a list of names and other information from a JavaScript object. I receive changes (adds, change & delete) to that list, convert it into a JavaScript object. I do...
8
by: Steph | last post by:
Hi. I'm very new to MS Access and have been presented with an Access database of contacts by my employer. I am trying to redesign the main form of the database so that a button entitled...
4
by: siaj | last post by:
Hi , I m new to ASP.NET ... I have a submit button on my form which adds an user to the DB. I am facing issue where as after clicking the submit button I refresh the form then duplicate entries...
1
by: Mr. B | last post by:
VB.net 2003 c/w Framework 1.1 and MS Access db We have a commercial program that does our Acounting and Time Sheets (Timberline). At least once a day our Accounting department runs a Script...
5
by: samoore33 | last post by:
I use the code below to return rows matching the state in the theState variable. I want to know if it is possible to search through the DataRow that I am returning with the search. I understand...
5
gekko3558
by: gekko3558 | last post by:
I am writing a simple binary search tree (nodes are int nodes) with a BSTNode class and a BST class. I have followed the instructions from my C++ book, and now I am trying to get a remove method...
4
by: zfareed | last post by:
I am attempting to search a list to check whether an item is already present before inserting. I am having trouble with the pointers; I understand that I need to set the pointer to the start of...
8
by: Sham | last post by:
I am trying to perform the following query on a table that has been indexed using Full Text Search. The table contains multiple columns than have been indexed. (Below, all xml columns are...
1
by: mandanarchi | last post by:
I've hunted for info about this and come up with loads. Jet 4.0 error - fixed in latest service pack. We all have latest service pack. Copy faulty table, delete old, remove fault field etc This...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.