Re: Reading MS Access Memo Field
- From: "Kevin Spencer" <kevin@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 17 Apr 2006 09:13:32 -0400
What do you expect the data type to be? You can create a string from it by
using the System.String constructor overload:
new string(char[])
--
HTH,
Kevin Spencer
Microsoft MVP
Professional Numbskull
Hard work is a medication for which
there is no placebo.
"M. Noroozi Eghbali" <galaxy@xxxxxxxxxxxxx> wrote in message
news:%23yRF7efYGHA.500@xxxxxxxxxxxxxxxxxxxxxxx
Hi All,
I used the below code to get the information from a MS Access database
file:
----------------------------------------------------
bdpConnection1.Open();
bdpDataAdapter1.SelectCommand.CommandText = "SELECT * FROM Info WHERE
Email = '" +
email.Text + "'";
bdpDataAdapter1.FillSchema(dataSet1, SchemaType.Source, "Info");
RowNum = bdpDataAdapter1.Fill(dataSet1);
if(RowNum != 0)
{
UserInf.DownloadedFile =
dataSet1.Tables["Info"].Rows[0]["DownloadedFile"].ToString();//***
}
bdpConnection1.Close();
------------------------------------------------------
The "DownloadedFile" field of the database is of type Memo. After running
the code, the value of the UserInf.DownloadedFile is "system.char[]"
instead of the correct value of that. Any help?
Thank you,
Mehrdad
.
- Follow-Ups:
- Re: Reading MS Access Memo Field
- From: M. Noroozi Eghbali
- Re: Reading MS Access Memo Field
- References:
- Reading MS Access Memo Field
- From: M. Noroozi Eghbali
- Reading MS Access Memo Field
- Prev by Date: Re: DigitalPersona SDK
- Next by Date: Re: Does WinFX need XP?
- Previous by thread: Reading MS Access Memo Field
- Next by thread: Re: Reading MS Access Memo Field
- Index(es):
Relevant Pages
|