ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old July 9th, 2003, 08:55 AM
mike010 mike010 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 4 mike010 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I don't get it...

Here is the line of code in jobs.asp:
Code:
<td colspan="2"><%=Replace( rsJobs( "job_desc" )%></p></td>


Here is the line of code in narative.asp:
Code:
<textarea rows="12" cols="70" name="txtNar"><%=Replace( rsJobs( "job_desc" ), "*8*", "'" )%></textarea>


The problem:

Here is what is displayed in jobs.asp:
"The narative is now a continuing thing. Updating it now does not necisarly overwrite what was previously there; however, you can remove the text if you want.

I've changed it so that the punch lists no longer appear in thier own window. I'm not re "

Here is what is displayed in narative.asp:
"The narative is now a continuing thing. Updating it now does not necisarly overwrite what was previously there; however, you can remove the text if you want.

I've changed it so that the punch lists no longer appear in thier own window. I'm not really a fan of pop up windows. It seemed like a good idea, but if people are just going to view one list at a time, why force them to deal with a new window?

I'm just typing to take up space, to make this longer and longer to see how it works."

As you can see, the message gets cut short. I have no idea why. As far as the ASP goes, both files use the same line of text. Both files pull the data from the same Access database. I simply coppied and pasted the ASP ADO code from one file to the other so it is the same. What other factors could cause this?

I know this isn't enough information to solve the problem, but any ideas as to where I could look for the proble would be great.

Thanks,
Mike.

Reply With Quote
  #2  
Old July 9th, 2003, 10:21 AM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,717 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 40 m 34 sec
Reputation Power: 688
Access text columns have a max length of 255 characters, that may be your problem.

Reply With Quote
  #3  
Old July 9th, 2003, 02:30 PM
mike010 mike010 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 4 mike010 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Well, I'm using a Memo field, so that's not the problem; however, I have managed to figure out that the problem is with my SQL statement that I use to create the record set. here is the statement:

strSQL = "SELECT jobs.job_id, jobs.job_q, jobs.job_title, jobs.job_desc, jobs.job_location, jobs.job_start, jobs.job_end, jobs.job_update, users.user_name, users.user_email, Sum(items.item_hours) AS SumOfitem_hours
FROM (jobs INNER JOIN users ON jobs.job_manager = users.user_id) INNER JOIN items ON jobs.job_id = items.item_job GROUP BY jobs.job_id, jobs.job_q, jobs.job_title, jobs.job_desc, jobs.job_location, jobs.job_start, jobs.job_end, jobs.job_update, users.user_name, users.user_email"

For some reason, this limits the jobs.job_desc field to 256 characters. how can i make it longer? the statement:

strSQL = "SELECT * FROM jobs WHERE job_id=1;"

works fine.

Reply With Quote
  #4  
Old July 9th, 2003, 07:29 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,717 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 40 m 34 sec
Reputation Power: 688
Try putting the memo column as the last selected column in your select list. Some versions of IIS/MDAC seem to choke when blob columns are not the last columns. Also, copy the memo field contents to a local variable then work with just the local variable in your code.

swaggin' here

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > I don't get it...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway