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

Using VB and SQL

I need a little help from you all. I am making a FMS Project with Oracle @ back end and VB as frontend.

I have a listbox with 3 options - Term I,II & III. Now, I want that when person chooses term I and clicks on NEXT BUTTON, then a new record should be added in the table (which I have done succesfully with ADODB) but when he chooses Term II or III, the database should be searched by admission no. and then the matching record should be displayed and updated (I haven't been able to do this part).

I would be highly obliged if you could help me with it.
Thanks!
Regards
Nov 28 '07 #1
2 1022
Dököll
2,364 Expert 2GB
I need a little help from you all. I am making a FMS Project with Oracle @ back end and VB as frontend ...
Hello, techack!

Should you have a message box to alert user to add admission no?

Also, I would have Term i, ii, and iii connect in the same manner. Once that's sorted out, I would then suppress getting data specific to Terms ii, and iii with the message box; perhaps as:

Expand|Select|Wrap|Line Numbers
  1. Private Sub Updt_Click()
  2.    Dim my_database As Database
  3.    Dim my_record As Recordset
  4. If (Text1(0) = "") Then
  5.    MsgBox ("Please put in your user id..."), vbOKOnly, "error"
  6. ElseIf (Text1(1) = "") Then
  7.    MsgBox ("Please put in employee id..."), vbOKOnly, "error"
  8. Else
  9.  
  10. Set my_database = OpenDatabase("C:\DataMining\Data_Central.mdb")
Your code will be different since you're using Oracle. This is an Access example I had to demonstrate the message box option.

You should probably keep this check local to VB and not Oracle. I am not sure how this can be handled in Oracle.

If Text1(0) or namely your combo box on your VB form is selected, the message should ask for added info.

Hope this help gear you somewhere ;-)

In a bit!

Dököll
Nov 29 '07 #2
Hello, techack!

Should you have a message box to alert user to add admission no?

Also, I would have Term i, ii, and iii connect in the same manner. Once that's sorted out, I would then suppress getting data specific to Terms ii, and iii with the message box; perhaps as:

Expand|Select|Wrap|Line Numbers
  1. Private Sub Updt_Click()
  2.    Dim my_database As Database
  3.    Dim my_record As Recordset
  4. If (Text1(0) = "") Then
  5.    MsgBox ("Please put in your user id..."), vbOKOnly, "error"
  6. ElseIf (Text1(1) = "") Then
  7.    MsgBox ("Please put in employee id..."), vbOKOnly, "error"
  8. Else
  9.  
  10. Set my_database = OpenDatabase("C:\DataMining\Data_Central.mdb")
Dököll
didn't get ur idea quite rightly. I think u should go through my 1st post again to understand what i m asking
Nov 29 '07 #3

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

Similar topics

5
by: Enos Meroka | last post by:
Hallo, I am a student doing my project in the university.. I have been trying to compile the program using HP -UX aCC compiler, however I keep on getting the following errors. ...
3
by: Mike L | last post by:
Should the command call "using" be before or after my namespace? **AFTER** namespace DataGridBrowser { using System; using System.Drawing; using System.Drawing.Drawing2D; using...
3
by: xzzy | last post by:
I was wondering why we have to have using System.Data using System.Configuration using etc.... why are they not all lumped into one 'using'? In other words, is there a best way to use...
14
by: pmud | last post by:
Hi, I need to use an Excel Sheet in ASP.NET application so that the users can enter (copy, paste ) large number of rows in this Excel Sheet. Also, Whatever the USER ENETRS needs to go to the...
8
by: acb | last post by:
Hi, I wrote a DLL Component (using Visual Studio 2005) and managed to include it into a C# Console application. I am now trying to include this component into a Web project. I copy the DLL...
0
by: Metal2You | last post by:
I'm working on an ASP.NET 2.0 application in Visual Studio 2005 that accesses a Sybase database back end. We're using Sybase SQL Anywhere 9.0.2.3228. I have installed and registered the Sybase...
10
by: mg | last post by:
I'm migrating from VB6 and have a question about using 'Using' and the best way to use it. Here is a example of a small bit of code: dbConx("open") Using CN Dim CMD As New OleDbCommand(sSQL,...
0
by: Eugene Anthony | last post by:
The problem with my coding is that despite removing the records stored in the array list, the rptPages repeater control is still visible. The rptPages repeater control displayes the navigation...
3
by: JDeats | last post by:
I have some .NET 1.1 code that utilizes this technique for encrypting and decrypting a file. http://support.microsoft.com/kb/307010 In .NET 2.0 this approach is not fully supported (a .NET 2.0...
6
by: =?Utf-8?B?U2hhd24gU2VzbmE=?= | last post by:
Greetings! I was researching AJAX to provide a solution to displaying status messages while a long process executed. I found several examples online and was able to use their code to get a quick...
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
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?
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
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
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.