I'm having difficulty with trying to update a Access memo field through an
SQL statement where the value I'm trying to pass is longer than 255
characters. The field is being truncated. I'm using a simple INSERT INTO
sql command. Anyone know a way around this?
Sample
strSQL = "INSERT INTO tblListings " & _
"(Dir, Street, City, State, " & _
"AFirst, Price, ALast, MainPhoto, Summary, Details,
UnderContract, Sold ) VALUES (" & _
"'" & dir & "'," & _
"'" & istreet.text & "'," & _
"'" & icity.text & "'," & _
"'" & istate.selecteditem.text & "'," & _
"'" & ifname.text & "'," & _
"'" & iprice.text & "'," & _
"'" & ilname.text & "'," & _
"'" & fname & "'," & _
"'" & strsummary & "'," & _
"'" & strdetails & "'," & _
"'" & ckcontract.checked & "'," & _
"'" & cksold.checked & "')"
Any help would be greatly apprciated. 6 2572
Open a read/write recordset on the table. (Not through an SQL query.)
This allows you to update the memo field.
Greetings,
Wessel
-----Original Message-----
From: Matt [mailto:Ma**@discussions.microsoft.com]
Posted At: Monday, April 11, 2005 3:57 AM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: Update Access Memo field from ASP.NET
Subject: Update Access Memo field from ASP.NET
I'm having difficulty with trying to update a Access memo field through
an
SQL statement where the value I'm trying to pass is longer than 255
characters. The field is being truncated. I'm using a simple INSERT
INTO
sql command. Anyone know a way around this?
Sample
strSQL = "INSERT INTO tblListings " & _
"(Dir, Street, City, State, " & _
"AFirst, Price, ALast, MainPhoto, Summary, Details,
UnderContract, Sold ) VALUES (" & _
"'" & dir & "'," & _
"'" & istreet.text & "'," & _
"'" & icity.text & "'," & _
"'" & istate.selecteditem.text & "'," & _
"'" & ifname.text & "'," & _
"'" & iprice.text & "'," & _
"'" & ilname.text & "'," & _
"'" & fname & "'," & _
"'" & strsummary & "'," & _
"'" & strdetails & "'," & _
"'" & ckcontract.checked & "'," & _
"'" & cksold.checked & "')"
Any help would be greatly apprciated.
Unfortunately, I want to be able to use an Access database at this point. I
looked through the comparisons and see how it could work with SQL Server.
But, I still haven't found a solution for Access.
"Patrick Olurotimi Ige" wrote: Hi Matt, Try going through this at:- http://office.microsoft.com/en-us/as...745731033.aspx ** Is it possible do change ur DB to SQL SERVER? Hope it helps Patrick *** Sent via Developersdex http://www.developersdex.com ***
I'm new to ASP.NET and I've never done an update except through an SQL
statement. Could you provide an example of your suggestion? It would be
greatly appreciated.
Thanks in advance,
Matt
"Wessel Troost" wrote: Open a read/write recordset on the table. (Not through an SQL query.) This allows you to update the memo field.
Greetings, Wessel
-----Original Message----- From: Matt [mailto:Ma**@discussions.microsoft.com] Posted At: Monday, April 11, 2005 3:57 AM Posted To: microsoft.public.dotnet.framework.aspnet Conversation: Update Access Memo field from ASP.NET Subject: Update Access Memo field from ASP.NET
I'm having difficulty with trying to update a Access memo field through an SQL statement where the value I'm trying to pass is longer than 255 characters. The field is being truncated. I'm using a simple INSERT INTO sql command. Anyone know a way around this?
Sample
strSQL = "INSERT INTO tblListings " & _ "(Dir, Street, City, State, " & _ "AFirst, Price, ALast, MainPhoto, Summary, Details,
UnderContract, Sold ) VALUES (" & _ "'" & dir & "'," & _ "'" & istreet.text & "'," & _ "'" & icity.text & "'," & _ "'" & istate.selecteditem.text & "'," & _ "'" & ifname.text & "'," & _ "'" & iprice.text & "'," & _ "'" & ilname.text & "'," & _ "'" & fname & "'," & _ "'" & strsummary & "'," & _ "'" & strdetails & "'," & _ "'" & ckcontract.checked & "'," & _ "'" & cksold.checked & "')"
Any help would be greatly apprciated.
Matt,
Sorry, I'm too busy right now to write an example. However, basically
it's something like this:
- Add a reference to the COM object "Micrsoft ActiveX Data Objects"
- Create an ADODB connection object with the right connection string
(examples can be found through google)
- Recordset = Connection->Open("tablename")
- Find the right record
- Update the memofield like: RecordSet("MyField") = "Long text"
I'm not sure that this would even work, but it's the road I would try...
Regards,
Wessel
-----Original Message-----
From: Matt [mailto:Ma**@discussions.microsoft.com]
Posted At: Monday, April 11, 2005 2:55 PM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: Update Access Memo field from ASP.NET
Subject: Re: Update Access Memo field from ASP.NET
I'm new to ASP.NET and I've never done an update except through an SQL
statement. Could you provide an example of your suggestion? It would
be
greatly appreciated.
Thanks in advance,
Matt
"Wessel Troost" wrote: Open a read/write recordset on the table. (Not through an SQL query.) This allows you to update the memo field.
Greetings, Wessel
-----Original Message----- From: Matt [mailto:Ma**@discussions.microsoft.com] Posted At: Monday, April 11, 2005 3:57 AM Posted To: microsoft.public.dotnet.framework.aspnet Conversation: Update Access Memo field from ASP.NET Subject: Update Access Memo field from ASP.NET
I'm having difficulty with trying to update a Access memo field
through an SQL statement where the value I'm trying to pass is longer than 255 characters. The field is being truncated. I'm using a simple INSERT INTO sql command. Anyone know a way around this?
Sample
strSQL = "INSERT INTO tblListings " & _ "(Dir, Street, City, State, " & _ "AFirst, Price, ALast, MainPhoto, Summary,
Details, UnderContract, Sold ) VALUES (" & _ "'" & dir & "'," & _ "'" & istreet.text & "'," & _ "'" & icity.text & "'," & _ "'" & istate.selecteditem.text & "'," & _ "'" & ifname.text & "'," & _ "'" & iprice.text & "'," & _ "'" & ilname.text & "'," & _ "'" & fname & "'," & _ "'" & strsummary & "'," & _ "'" & strdetails & "'," & _ "'" & ckcontract.checked & "'," & _ "'" & cksold.checked & "')"
Any help would be greatly apprciated.
Thanks for the help. I'll give it a try.
"Wessel Troost" wrote: Matt,
Sorry, I'm too busy right now to write an example. However, basically it's something like this: - Add a reference to the COM object "Micrsoft ActiveX Data Objects" - Create an ADODB connection object with the right connection string (examples can be found through google) - Recordset = Connection->Open("tablename") - Find the right record - Update the memofield like: RecordSet("MyField") = "Long text"
I'm not sure that this would even work, but it's the road I would try...
Regards, Wessel
-----Original Message----- From: Matt [mailto:Ma**@discussions.microsoft.com] Posted At: Monday, April 11, 2005 2:55 PM Posted To: microsoft.public.dotnet.framework.aspnet Conversation: Update Access Memo field from ASP.NET Subject: Re: Update Access Memo field from ASP.NET
I'm new to ASP.NET and I've never done an update except through an SQL statement. Could you provide an example of your suggestion? It would be greatly appreciated.
Thanks in advance,
Matt
"Wessel Troost" wrote:
Open a read/write recordset on the table. (Not through an SQL query.) This allows you to update the memo field.
Greetings, Wessel
-----Original Message----- From: Matt [mailto:Ma**@discussions.microsoft.com] Posted At: Monday, April 11, 2005 3:57 AM Posted To: microsoft.public.dotnet.framework.aspnet Conversation: Update Access Memo field from ASP.NET Subject: Update Access Memo field from ASP.NET
I'm having difficulty with trying to update a Access memo field through an SQL statement where the value I'm trying to pass is longer than 255 characters. The field is being truncated. I'm using a simple INSERT INTO sql command. Anyone know a way around this?
Sample
strSQL = "INSERT INTO tblListings " & _ "(Dir, Street, City, State, " & _ "AFirst, Price, ALast, MainPhoto, Summary, Details, UnderContract, Sold ) VALUES (" & _ "'" & dir & "'," & _ "'" & istreet.text & "'," & _ "'" & icity.text & "'," & _ "'" & istate.selecteditem.text & "'," & _ "'" & ifname.text & "'," & _ "'" & iprice.text & "'," & _ "'" & ilname.text & "'," & _ "'" & fname & "'," & _ "'" & strsummary & "'," & _ "'" & strdetails & "'," & _ "'" & ckcontract.checked & "'," & _ "'" & cksold.checked & "')"
Any help would be greatly apprciated.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: BlackFireNova |
last post by:
This concerns an Access 2002 (XP) database. There are two fields,
"Notes" (Memo Field) and "Notes Update" on a form (among others)
which I am concerned with here.
Problem: I need to be able...
|
by: htmlgeek |
last post by:
I've beaten my head againts this for two weeks and would appreciate
any help. Am running Dreamweaver 2004 MX asp pages with MS Access 2000
and then 2003 and received same problems!
I've rebuilt...
|
by: Andrew Donnelly |
last post by:
I am trying to update a memo field in a table from a form that I have
created. The form is unbound, and once the user makes their changes,
they have to click the continue button. Once the button...
|
by: Mark Reed |
last post by:
Hi All,
I'm having a problem with the following code. I've read quite a lot of
old posts regarding the issue but none seem to affer a solution.
The scenario is. I have a bound form which...
|
by: John |
last post by:
Hi
I had a working vs 2003 application with access backend. I added a couple
fields in a table in access db and then to allow user to have access to
these fields via app I did the following;
...
|
by: RMC |
last post by:
Hello,
I'm looking for a way to parse/format a memo field within a report.
The Access 2000 database (application) has an equipment table that
holds a memo field. Within the report, the memo...
|
by: Owen Jenkins |
last post by:
Following on from an earlier post...
I can reliably corrupt a record by doing the following ...
Open two separate but identical front ends on one PC each linking to the
same back end.
Edit a...
|
by: Access Programming only with macros, no code |
last post by:
ERROR MESSAGE:
Could not update; currently locked by another session on this
machine.
BACKGROUND
I have the following objects:
Table1 - HO (which has about 51,000+ records)
Table2 -...
|
by: thewesties |
last post by:
Could somebody please help me before I dump a gallon of water on my pc!
I am very happy to have come across this site on the internet. TheScripts has helped me through so many issues to this...
|
by: Naresh1 |
last post by:
What is WebLogic Admin Training?
WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
|
by: antdb |
last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine
In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
|
by: Matthew3360 |
last post by:
Hi,
I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
|
by: Carina712 |
last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
|
by: Rahul1995seven |
last post by:
Introduction:
In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
|
by: Johno34 |
last post by:
I have this click event on my form. It speaks to a Datasheet Subform
Private Sub Command260_Click()
Dim r As DAO.Recordset
Set r = Form_frmABCD.Form.RecordsetClone
r.MoveFirst
Do
If...
|
by: ezappsrUS |
last post by:
Hi,
I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
|
by: jack2019x |
last post by:
hello, Is there code or static lib for hook swapchain present?
I wanna hook dxgi swapchain present for dx11 and dx9.
|
by: DizelArs |
last post by:
Hi all)
Faced with a problem, element.click() event doesn't work in Safari browser.
Tried various tricks like emulating touch event through a function:
let clickEvent = new Event('click', {...
| |