Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB Databases Basics
|
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 30th, 2008, 01:40 PM
Registered User
 
Join Date: Sep 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Writing recordset to a memo field

Hi there. I have a VB6 pgm that goes and compares a field from 2 tables (one is current and the other table is an old version) and if they are different, then the pgm is supposed to write out what the differences are to a memo field in a table. The pgm runs smoothly with no errors except the memo field is never populated. I have no way of finding out what is going on. Step through it and all is fine. I changed the memo field to text and the pgm actually writes out to the text field when I look up the table. What is up with a memo field and help!

Here is my code:

If the 2 tables are not equal Then
            rstCompareTables.AddNew
            rstCompareTables!SeqNo = rstCurrentTable!SeqNo
            rstCompareTables!ShortName = strThisShortName
            rstCompareTables!EditName = strThisEditName
            rstCompareTables!ChangeType = "Changed"
            rstCompareTables!ChangedItem = "IncludedVariables"
            strTemp = rstOldTable!IncludedVariables
            rstCompareTables!FromValue = strTemp
            varTemp = rstCurrentTable!IncludedVariables
            rstCompareTables!ToValue = strTemp
            rstCompareTables.Update

         End If


FromValue is the memo field in the table that I am looking at and it is blank throughout the table. Nothing got populated and I rec'd no error msgs. strTemp is working fine when I step through the pgm and see the data populated in strTemp.
 
Old September 30th, 2008, 02:51 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

What kind of data base is it?
 
Old September 30th, 2008, 05:25 PM
Registered User
 
Join Date: Sep 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm sorry - its Access.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Memo Field Brendan Bartley Access 11 December 13th, 2007 04:28 PM
Memo field not displaying meichmann SQL Server ASP 3 August 31st, 2006 11:36 AM
MEMO FIELD! With VB6 rolandatem Pro VB Databases 2 January 28th, 2005 10:49 PM
Pagefault from memo field dave_pollak Access VBA 0 November 24th, 2004 10:25 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.