PC Review


Reply
Thread Tools Rate Thread

accessing twice a memo field in a recordset

 
 
majorri
Guest
Posts: n/a
 
      16th Jan 2009
I have filled a recordset with an sql query that reads from an Access database.

When I try to access twice the same field which in Access was a memo, the
first time i get the values that are in the database, but the second time the
expression
oRs.Fields("MM_ISSUES") is equal to Null.

Can someone help please??
 
Reply With Quote
 
 
 
 
Joel
Guest
Posts: n/a
 
      16th Jan 2009
Here is usful info from the Acess VBA Help under Recordset Object



When you open a Recordset, the current record is positioned to the first
record (if any) and the BOF and EOF properties are set to False. If there are
no records, the BOF and EOF property settings are True.

You can use the MoveFirst, MoveLast, MoveNext, and MovePrevious methods; the
Move method; and the AbsolutePosition, AbsolutePage, and Filter properties to
reposition the current record, assuming the provider supports the relevant
functionality. Forward-only Recordset objects support only the MoveNext
method. When you use the Move methods to visit each record (or enumerate the
Recordset), you can use the BOF and EOF properties to determine if you've
moved beyond the beginning or end of the Recordset.



"majorri" wrote:

> I have filled a recordset with an sql query that reads from an Access database.
>
> When I try to access twice the same field which in Access was a memo, the
> first time i get the values that are in the database, but the second time the
> expression
> oRs.Fields("MM_ISSUES") is equal to Null.
>
> Can someone help please??

 
Reply With Quote
 
majorri
Guest
Posts: n/a
 
      16th Jan 2009
Thanks for that Joel.

But my problem is when i access twice the same field that relates to a same
row. Basically it is as if i was accessing twice the same column for the very
same row.


"Joel" wrote:

> Here is usful info from the Acess VBA Help under Recordset Object
>
>
>
> When you open a Recordset, the current record is positioned to the first
> record (if any) and the BOF and EOF properties are set to False. If there are
> no records, the BOF and EOF property settings are True.
>
> You can use the MoveFirst, MoveLast, MoveNext, and MovePrevious methods; the
> Move method; and the AbsolutePosition, AbsolutePage, and Filter properties to
> reposition the current record, assuming the provider supports the relevant
> functionality. Forward-only Recordset objects support only the MoveNext
> method. When you use the Move methods to visit each record (or enumerate the
> Recordset), you can use the BOF and EOF properties to determine if you've
> moved beyond the beginning or end of the Recordset.
>
>
>
> "majorri" wrote:
>
> > I have filled a recordset with an sql query that reads from an Access database.
> >
> > When I try to access twice the same field which in Access was a memo, the
> > first time i get the values that are in the database, but the second time the
> > expression
> > oRs.Fields("MM_ISSUES") is equal to Null.
> >
> > Can someone help please??

 
Reply With Quote
 
majorri
Guest
Posts: n/a
 
      16th Jan 2009
thanks for that Joel.

But my problem is within a same row of a recordset trying to access the same
field twice. Its like if in a database i was trying to access twice the same
column for a given row.

thanks

"majorri" wrote:

> I have filled a recordset with an sql query that reads from an Access database.
>
> When I try to access twice the same field which in Access was a memo, the
> first time i get the values that are in the database, but the second time the
> expression
> oRs.Fields("MM_ISSUES") is equal to Null.
>
> Can someone help please??

 
Reply With Quote
 
Joel
Guest
Posts: n/a
 
      16th Jan 2009
Access the data moved the pointer to the nexr row. The second time you look
for the data it is not there. I think you have to move the pointer.

"majorri" wrote:

> Thanks for that Joel.
>
> But my problem is when i access twice the same field that relates to a same
> row. Basically it is as if i was accessing twice the same column for the very
> same row.
>
>
> "Joel" wrote:
>
> > Here is usful info from the Acess VBA Help under Recordset Object
> >
> >
> >
> > When you open a Recordset, the current record is positioned to the first
> > record (if any) and the BOF and EOF properties are set to False. If there are
> > no records, the BOF and EOF property settings are True.
> >
> > You can use the MoveFirst, MoveLast, MoveNext, and MovePrevious methods; the
> > Move method; and the AbsolutePosition, AbsolutePage, and Filter properties to
> > reposition the current record, assuming the provider supports the relevant
> > functionality. Forward-only Recordset objects support only the MoveNext
> > method. When you use the Move methods to visit each record (or enumerate the
> > Recordset), you can use the BOF and EOF properties to determine if you've
> > moved beyond the beginning or end of the Recordset.
> >
> >
> >
> > "majorri" wrote:
> >
> > > I have filled a recordset with an sql query that reads from an Access database.
> > >
> > > When I try to access twice the same field which in Access was a memo, the
> > > first time i get the values that are in the database, but the second time the
> > > expression
> > > oRs.Fields("MM_ISSUES") is equal to Null.
> > >
> > > Can someone help please??

 
Reply With Quote
 
 
 
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Findfirst recordset to search memo field type Dale Microsoft Access Form Coding 11 8th Apr 2010 04:41 PM
Memo Field - Append Text fields into memo field??? =?Utf-8?B?UGF0IFN0ZXdhcnQ=?= Microsoft Access 1 18th Feb 2007 08:45 PM
trouble concatenating text of 1 memo field to another memo field in same record via button ghadley_00@yahoo.com Microsoft Access Form Coding 1 9th Nov 2005 11:55 AM
ADO Recordset truncating memo field =?Utf-8?B?S0pHaW5OQw==?= Microsoft Access VBA Modules 1 26th Jul 2005 06:45 PM
Recordset: accessing values using variable for field name =?Utf-8?B?QW5uYSBT?= Microsoft Access VBA Modules 1 25th Oct 2004 09:02 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:48 PM.