4,457 Topics
![]() | |
Okay, So I'm currently working on my A2 computing project, and I am having slight difficulties updating and saving the data in my database when it is entered on a form in VB. I cannot find any reason why it wouldn't work, but if someone could suggest a better way … | |
Hi to everyone! I am new in programming and I'm making an application that can filter records on datagrid from the user's input in textbox..I tried this code that I also got here.. But I'm getting an error..please help me..thanks in advance.. ERROR MESSAGE: An unhandled exception of type 'System.InvalidOperationException' … | |
[COLOR="Red"]Disclaimer: [I]First, I'm aware that this is C++ code and this is a C# forum, I'm not all that familiar with C++ and was hoping someone here could explain the example below in C#.[/I][/COLOR] I was browsing the very complex source code of the open source project MySQL and saw … | |
Ihave used the following to save the users data in the the SQL table.But the data is not been save.Can anyone pls suggest what is the error? [code] { string Name = TextBox4.Text; String Telephone = TextBox3.Text; String Email = TextBox2.Text; String enquiry = TextBox1.Text; SqlConnection conn = new SqlConnection(); … | |
Hi all i am havin a problem with my Jet oleDB connection i am getting an error and i am not sure if my code is completly wrong or it is a small problem any help would be great. This is the erorr i get: An unhandled exception of type … | |
I'm working on a java program in netbeans and I have it working except to run it I have to right click the main file and tell it to run instead of just clicking the run button. Any help would be appreciated. Sincerely yours; jdm [CODE] /* * To change … | |
Error 2 'System.Web.HttpApplicationState' does not contain a definition for 'startuppath' and no extension method 'startuppath' accepting a first argument of type 'System.Web.HttpApplicationState' could be found (are you missing a using directive or an assembly reference?) E:\Report1\global\Default.aspx.cs 77 36 E:\Report1\global\ please help me.. i want to override the connection string of … | |
I have a list of values extracted from a datareader in a list. Is it possible for me to run a query to extract another set of values using a datareader and then use the individual values in the list and the values in the datareader to perform some calculation, … | |
i have connected combo box with data base... i have called a field in combo box... but i dont know how to made selection.. means when i click on items that are in combo box from database, the text box should change value according to the selection of combobox. [CODE]Option … | |
The code below was written using C++.NET framework. How will the code be completed to retrieve all the records from microsoft access 2003 table PROFILE and display them in a form? [CODE] private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) { ADODB::Recordset ^ rst=gcnew ADODB::Recordset; ADODB::Connection ^ conADO; Object ^ obj; String … | |
i m using sql server 2000 with vb 6. i m having some problem in navigating recors.. when i m pressing Move Next,it moves only one record, and when i m moving Move previous, samely it move one previous record... here is a code... [CODE]Option Explicit Private con As New … | |
Hello I've got a problem, I have a Oracle db in a Windows 2003 server, the server has already installed the framework 2.0, and in the same server I published a web site in asp.net 2005, and this site should connect to the oracle db, but when you open any … | |
Im working on a project for college. The form im working on allows the user to edit the details of a customer. I have the following code attached to the EDIT button [CODE] EditCustomerTable.Clear() EditCustomerConnection.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=QuickQuotes.mdb" EditCustomerConnection.Open() EditCustomerAdapter = New OleDb.OleDbDataAdapter Dim SQL As String = "UPDATE Customers … | |
Hey. As you know I'm a newbie in C++ and I'm learning from some source codes and eBooks. I don't know if the problem is to me but when I try to compile the code an error shows. I don't know if I should copy this code but I read … | |
Hey, I have a function, though it's not working as it should be. My program is Dijkstra's algorithm, and I am trying to build a list of a node's nearest neighbours using info contained in a text file of the network (7 nodes in this case), in the form: 0,2,4,1,6,0,0 … | |
I have a data base using access which has one column as jobno and which is empty. I want that when my form load (vb.net 2005) it generate a number which then appears in a textbox. Below are my codes please i cant complete it help me. Private Sub Form1_Load(ByVal … | |
Hi this is an assignment for my computer science lab. It is weird because if I compile and run with my c compiler from ubuntu gcc4.4, it works perfectly. But if I compile with the university's server (I connect with SSH) it messes up The main purpose of the program … | |
I am using MsAccess DB and Vb.NET 2008. This is a code to check the Database for duplicate entries but m geting an Error. [B]" Fill: SelectCommand.Connection property has not been initialized."[/B] And this points to [B]LINE NO 14[/B]. What could be the cause..? thanks in adv [CODE] Dim con … | |
Hi, i have problem that i cant see data in data base. code has no error. i dont know whats wrong. i m using Visual Studio 2008. [CODE] Imports System.Data.SqlClient Public Class frmpurchase Dim cmd, cmd1, cmd2, cmd3, cmd4 As New SqlClient.SqlCommand Dim adp, adp1, adp2 As New SqlDataAdapter Dim … | |
Greetings i'm going to work on project thats a script for MCQ quizzes the requirements are: 1- the instructor can make quiz and save it to the database. 2- the instructor can select specific quiz from the database and allow the students to take it 3- the quiz should be … | |
Imports System.Data.OleDb Public Class updateharvesting Dim co As OleDbConnection Dim cm As OleDbCommand Dim dr As OleDbDataReader Private Sub updateharvesting_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load GroupBox1.Visible = False End Sub Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged Label2.Text = "enter no" … | |
Hi, I am creating an login page connected to a database. I am using access ODB. the problem is, if the user makes an wrong input, and the invalid data message box appeared, when typing the data again, and press ok, the following exeption occured: Not allowed to change the … | |
sir/madam i need a help.......how to search a string from oracle to vb.......my codings are not working properly so please correct it........i attach my codings below... [COLOR="Red"] accse.Open "Provider=MSDASQL.1;Password=tiger;Persist Security Info=True;User ID=scott;Data Source=facultydetails" rsfdcse.Open "select * from csefacultydetails where name= " & "'&name1.Text '", accse, adOpenDynamic, adLockOptimistic If Not rsfdcse.RecordCount … | |
Hello, I am making a simple program that has you select Bible chapters and verses. I have all the chapters and verses in separate text files. I moved them into my source package. I am having trouble finding the code to put in the program so that java will open … | |
Good day.. I'm having problem on how to store or create a table on my database using vb.net i'm having hard time to create a table on my existing dbase here my code; coould you tell me what's wrong!!! Dim ntable As OleDb.OleDbDataAdapter Dim mtable As New DataTable con.ConnectionString = … | |
Good day. I am having a trouble on how to update my reocrds on my 2 tables. 1 table is sample and the other table is tbl_educ. my sample table which has a pk of emp_id while the tbl_educ has a field of emp_id they are related by one-many relationship. … | |
hi people! I badly need a help regarding this program.. I want to insert this two data in my database... [CODE] try { OleDbConnection conn = new OleDbConnection(); conn.ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\lenovo\Desktop\C CONTRUCTS\C CONTRUCTS\CONSTRUCTION.accdb"; conn.Open(); OleDbCommand ccmd1 = new OleDbCommand("INSERT INTO [ORDER_DRIVER]([DELIVERY_NO],[DRIVER_ID],[STATUS])" + "VALUES(" + "'" + textBox1.Text + "'" … | |
Hi, I've been researching these past few days on SendMessage and FindWindow and I've been looking at example source codes but I just can't seem to understand the process between it. At first I just wanted to send a simple message from a textbox to the open chat of another … | |
Hello, How to import csv data into Oracle using c #. Where data to be imported 3GB in size and number of rows 7512263. I've managed to import csv data into Oracle, but the time it takes about 1 hour. How to speed up the time it takes to import … | |
Hi, Not sure if my question belongs in an ASP.NET or MSSQL forum.. I have an ASP.NET webpage built in VS2010 with an Input field with the functionality to browse to a network directory, select a text file, read content and upload the data to an MSSQL database table. Nothing … | |
I have the following code in my asp page: [code] Imports System.Data.SqlClient Imports System.Data Partial Class _Default Inherits System.Web.UI.Page Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim dt As DataTable Dim connectionString As String = "Initial Catalog=mdr;Data Source=xxxxx;uid=xxxxx;password=xxxxx" Dim con As New SqlConnection(connectionString) Dim cmd … | |
I have made a system, when use select Model,then the F.Grade dropdownlist will show the F.Grade belong to user select Model. So I put display F.Grade code into Model dropdownlist. But it is very slow when user use down arrow button to find model. This is because when down to … | |
i got a small piece of soft that connects to a huge .gdb database (500000 lines) through the network. using .movelast will give me memory out. any good advice to access in a fast way the last record? Dim cn As New ADODB.Connection sConnStr = "Provider=ZStyle IBOLE Provider;Password=masterkey;User ID=SYSDBA;SQL Dialect=3; … | |
Hello I want to put an advanced file uploader, for uploading a few files at once, and also for big files. The support for big files is critical, so if a user wants to upload 2GB file, and it get stuck in the middle, it can continue from the same … | |
Hi my problem is that When trying to insert a statement into an MSAccess file I get this message: [COLOR="Red"]Data type mismatch in criteria expression[/COLOR] Below are my codes. Im using vb.net 2.0 [code] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim sql As String … | |
Hi gang ; The code below works fine but a more flexible one would be better. For example what am looking for an original try-throw-cath block which throws the exception "Item not found" message itself. try { SQLiteConnection ^connection = gcnew SQLiteConnection(); connection->ConnectionString = "Data Source = atbdn3.db3"; connection->Open(); System::String … | |
I am getting an Error that Glassfish server starts fails.....I dont knw why? Here is my server file.. Mar 4, 2011 5:57:08 PM com.sun.enterprise.glassfish.bootstrap.ASMain main Welcome to Felix ================ INFO: Launching GlassFish on Felix platform INFO: Perform lazy SSL initialization for the listener 'http-listener-2' INFO: Starting Grizzly Framework 1.9.18-o - … | |
I have a main form with datagridview attached to the form. i calling datagridview when the form load, but am getting the 'property access must assign to the property or use it's value. Please help me correct the error. Attached is the form to help analysis the problem. thanks Gyamfi … | |
object reference not set to an instance of an object I'm develop a C# window form application in VS2008. when run the exe file in PC. It come out message box.(object reference not set to an instance of an object). When I change the connection string to normal style like … | |
Hello friends, I try to rewrite links with htaccess, but the server does not change the links. I want, e.g.. the link [url]www.example.com/index.php?option=com_content&view=section&id=7&Itemid=54[/url] To be: [url]www.example.com/cat/7/Item_54[/url] (Or something similar). My .htaccess file is: [CODE] ## # @version $Id: htaccess.txt 13415 2009-11-03 15:53:25Z ian $ # @package Joomla # @copyright Copyright … | |
im trying to make a program with win32 GUI and im having trouble getting this to compile. Here are the errors im getting [QUOTE]D:\Documents and Settings\Skull\Desktop\Dorzon\main.cpp||In function 'BOOL DialogProc(HWND__*, UINT, WPARAM, LPARAM)': | D:\Documents and Settings\Skull\Desktop\Dorzon\main.cpp|57|error: 'ShellExecute' was not declared in this scope| ||=== Build finished: 1 errors, 0 warnings … | |
[code] Dim Conn_web As SqlConnection Conn_web = MyFormz.connec.ConnWeb2(dbName) Conn_web.Open() Dim sqlcmd_Insert As New SqlCommand(sql_Insert1 + sql_Insert2, Conn_web) Try sqlcmd_Insert.ExecuteNonQuery() MsgBox("The New Record has been saved.") Catch ex As Exception MsgBox(ex.Message) End Try [/code] [code] Sub Insert_New_Converts_Followups(ByVal strFollowup_No As String, ByVal strFollowup_Date As String, ByVal strFollowup_By As String, ByVal strFollowup_Response As … | |
I'm seeking recommendations for a CMS for a new community/ social networking website. The following technical criteria are desirable: [LIST] [*]Open source (for customization and low cost). [*]Linux-Apache-PHP-MySQL based (technologies I already know). [*]Job board module, i.e. employers can advertise jobs and members can manage resumes and apply online. [*]Forums. … | |
hi. I was trying to choose data from the combobox then When I choose something.. it will also generate the other data into the textbox. I just wanted to choose a STUD_ID in the combobox and the fname and the lname should show in the textbox. actually.. I just did … | |
Hello Daniweb! [COLOR="Red"]I'm using VS2010, targeting .NET 4.0. [/COLOR] I'm looking for options with programmatically printing PDF's from a windows service. Basically, I have an app that will have a folder full of PDF's that were created overnight. The service should be able to print them to a specified printer, … | |
hi, plz help me how can i get the return value of mysql stored function from ASP.net with c#. Currently i m using the following code for this purpose [code] string strConnect = "Data Source=" + host + ";Database=" + database + ";User ID=" + user + ";Password=" + password … | |
Hi Every Body I am just trying to insert a record in Access 2003 table by code of C#2008 Here is the code - [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.OleDb; using System.Data.Sql; using System.Globalization; using System.IO; using Microsoft.VisualBasic; … | |
please people your help will be appreciated. i have a table with data definition: column Datatype BookID int AuthorFirstname nvarchar(20) AuthorSecondName nvarchar(20) BookTitle nvarchar(50) Price nvarchar(50) My problem is that i can't see the inserted data in my table Below is the whole code: [CODE]Imports System Imports System.Collections Imports System.ComponentModel … | |
Hi I have recently learned c++, I'm 14 and want to get started on developing software. The problem is I'm too young to get a career in programming but I would like to start now partly to make it easier in later life and partly because I enjoy programming. The … | |
I have a motion detection code that creates a processor for my webcam bu then I want to transmit this video stream also. I am trying to use the VideoTransmit code provided by sun. Can I be able to modify it to use the same processor as my Motion detection … |
The End.