Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 6:59 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Access Memo DataType
PostPosted: March 26th, 2006, 1:37 am 
Offline

Joined: November 3rd, 2004, 6:37 pm
Posts: 42
Location: Ireland
hi,

ok i'm have a problem pulling data from a memo datatype in a ms access database.

it pulls the data in ok if i change the memo datatype to text datatype, but the debugging displays undefined if it's a memo type.

variable - databse defined in a variable
<DB_FileDNS> FILEDSN=KYUSA_StdRec_Db.dsn


opus script code:
var KYI_db = new Database(DB_FileDNS);

var featureStudyDetails = KYI_db.ExecuteSQL("SELECT FeatureDetails FROM Features WHERE Name = ('" + StudyFeature + "');");
var numRecords = featureStudyDetails.GetNumberOfRecords()

TextFeatureInfo.ReplaceSelection(featureStudyDetails.FeatureDetails)
TextFeatureInfo.SetSelection(0,-1)


is there any reason why this would work for memo datatype or am i doing something wrong. any help would be great, really need text to be longer than 255 chars, but if i'll split it up if needs be.

luke


For this message lukemcurley has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: March 26th, 2006, 4:39 am 
Offline

Joined: November 28th, 2004, 6:05 am
Posts: 141
Location: USA
Hi Luke

see this post

viewtopic.php?t=518

HTH
Chris

_________________
Opus Resources and Services


For this message Chris Jones has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: March 27th, 2006, 11:45 am 
Offline

Joined: November 3rd, 2004, 6:37 pm
Posts: 42
Location: Ireland
hi,

yeah i did a forum search and tried that solution but wasn't getting results. after trying a few different sql statements over the weekend, i got the following to work:

var featureStudyDetails = KYI_db.ExecuteSQL("SELECT * FROM Features WHERE Name = ('" + StudyFeature + "') AND TypeID = ('" + 2 + "');");

this pulls the memo datatype out fine.


For this message lukemcurley has been thanked by : mackavi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 65 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group