Click here to Skip to main content
15,889,034 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Project Pin
P-Rex21-Jun-05 20:52
P-Rex21-Jun-05 20:52 
GeneralI think what he meant was... Pin
Ravi Bhavnani21-Jun-05 16:54
professionalRavi Bhavnani21-Jun-05 16:54 
GeneralRe: I think what he meant was... Pin
Luis Alonso Ramos21-Jun-05 17:12
Luis Alonso Ramos21-Jun-05 17:12 
GeneralRe: C# Project Pin
Roger Wright21-Jun-05 17:44
professionalRoger Wright21-Jun-05 17:44 
GeneralRe: C# Project Pin
cjengler21-Jun-05 23:32
cjengler21-Jun-05 23:32 
GeneralArrayList Pin
webhay21-Jun-05 2:30
webhay21-Jun-05 2:30 
GeneralRe: ArrayList Pin
Carsten Zeumer21-Jun-05 3:11
Carsten Zeumer21-Jun-05 3:11 
GeneralBest way to store user pref's Pin
JDUK21-Jun-05 2:18
JDUK21-Jun-05 2:18 
GeneralRe: Best way to store user pref's Pin
Marc Clifton21-Jun-05 2:24
mvaMarc Clifton21-Jun-05 2:24 
GeneralRe: Best way to store user pref's Pin
Matt Gerrans21-Jun-05 21:46
Matt Gerrans21-Jun-05 21:46 
GeneralRe: Best way to store user pref's Pin
IamJunk21-Jun-05 6:11
IamJunk21-Jun-05 6:11 
GeneralRe: Best way to store user pref's Pin
Khanh Duy21-Jun-05 16:34
Khanh Duy21-Jun-05 16:34 
GeneralRe: Best way to store user pref's Pin
Drew Stainton21-Jun-05 18:57
Drew Stainton21-Jun-05 18:57 
GeneralPDF images to Tif Pin
robia21-Jun-05 2:05
robia21-Jun-05 2:05 
GeneralRe: PDF images to Tif Pin
Drew Stainton21-Jun-05 19:02
Drew Stainton21-Jun-05 19:02 
GeneralTreeview control Pin
Anonymous21-Jun-05 1:19
Anonymous21-Jun-05 1:19 
GeneralRe: Treeview control Pin
mav.northwind21-Jun-05 2:08
mav.northwind21-Jun-05 2:08 
GeneralRe: Treeview control Pin
Anonymous21-Jun-05 2:33
Anonymous21-Jun-05 2:33 
GeneralRe: Treeview control Pin
mav.northwind21-Jun-05 3:35
mav.northwind21-Jun-05 3:35 
Generalprogram Pin
mhmo21-Jun-05 1:15
mhmo21-Jun-05 1:15 
Hi all

I am writting a C# program that reads lines from a file. And then store each line in one record in more than one field.

But at the middle of the proccessing a message said that "v\cant open more tables"
here is the pic:
http://www.javadevs.com/problem.bmp[^]
copy the link and paste it in the browser...

And here is my code:

for (int i = 1; i<= Int32.Parse(numNumber.Value.ToString().Trim()); i++ ) {

string cha = answers.Substring(i-1,1);

string anCommand = "UPDATE information SET " + i + "='" + cha + "' WHERE id = '" + id+ "';";
try
{
com = new OdbcCommand(anCommand, dbConn);
com.ExecuteNonQuery();
}
catch (Exception ex)
{
MessageBox.Show( anCommand + "\r\nInserting answers\r\n" + ex.ToString());
stsGrade.Text = "Error!...";
return;
}
finally
{

}
}

It worked for the first 3 lines, but in the fourth line the problem appeared!!
All the lines has the same structure.
I am using MS Access database.
What is the problem?
GeneralRe: program Pin
mav.northwind21-Jun-05 2:02
mav.northwind21-Jun-05 2:02 
GeneralRe: program Pin
mhmo21-Jun-05 2:53
mhmo21-Jun-05 2:53 
GeneralRe: program Pin
J4amieC21-Jun-05 2:08
J4amieC21-Jun-05 2:08 
GeneralIn Depth Knowledge required Pin
Member 186032521-Jun-05 1:13
Member 186032521-Jun-05 1:13 
GeneralRe: In Depth Knowledge required Pin
Marc Clifton21-Jun-05 2:27
mvaMarc Clifton21-Jun-05 2:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.