473,516 Members | 3,277 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Memo Field won't refresh after update

16 New Member
Hi,
I have a Memo Field, which Users update to provide a running commentary on issues. The journal page is read-only and the comments are added to the table via a seperate comments form. The reason for this is that everyone needs to be able to read the journal but only authorised Users have access to the Comments Form i.e.can add comments. The problem is that after update I can't get the Memo Field to refresh. I've tried various forms / combinations of requery and refresh e.g. [Forms]![FormName]![fieldName].Requery among others but nothing other than closing and reopening the Form appears to work. Are there any other VBA commands which I could try, or any reasons why it might not want to refresh? It's really driving me bonkers....

Many thanks for your help in advance

ffripp
Aug 28 '14 #1
6 1433
Seth Schrock
2,965 Recognized Expert Specialist
Instead of trying to refresh/requery the control, try to requery the form that the control is in.
Aug 28 '14 #2
ffrippy
16 New Member
Thanks for your reply Seth, as I said I've tried every combination I can think of, [Forms]![FormName]![fieldName].Requery,
[Forms]![FormName].Requery,
Requery,
Me![Fieldname].Requery
Formname.requery plus more..
oh... and all the same combinations again with Refresh....
Aug 28 '14 #3
twinnyfo
3,653 Recognized Expert Moderator Specialist
ffrippy,

You said this field is, in fact, updating, though, because when you close the form and re-open, the field is updated.

How are you accessing the data for this form? Kind of a silly question, I know, but there might be something preventing the record source from refreshing/requerying. I don't know what that might be.....
Aug 28 '14 #4
ffrippy
16 New Member
Hi twinnyfo,

I'm accessing the data via a combobox with the recordsource set in VBA with a refresh or and Requery statement after it(I tried it first in the properties box, but that didn't work either.

Many Thanks for your reply

ffripp

Expand|Select|Wrap|Line Numbers
  1.         JournalEntryValue = DLookup("[Journal Entry]", "tblACTIVITYJOURNAL", "tblACTIVITYJOURNAL![Activity ID] = Forms!frmACTIVITYDATA![Activity ID]")
  2.        Me![JournalEntry] = JournalEntryValue 
Aug 29 '14 #5
jforbes
1,107 Recognized Expert Top Contributor
Nice job Twinnyfo. That's it.

Instead of calling Refresh or Requery, you'll need to run the DLookup again:
Expand|Select|Wrap|Line Numbers
  1.         JournalEntryValue = DLookup("[Journal Entry]", "tblACTIVITYJOURNAL", "tblACTIVITYJOURNAL![Activity ID] = Forms!frmACTIVITYDATA![Activity ID]")
  2.         Me![JournalEntry] = JournalEntryValue 
By grabbing the value with a Dlookup, the form's Querying and Binding are bypassed leaving the Me!JournalEntry control Unbound. So it will need to be re-queried manually.

A couple options you can implement if you would rather the Control to be Bound, which would allow you to use Requery to display updated values:

Include tblACTIVITYJOURNAL![Journal Entry] in your Forms RecordSource. This would most likely change your RecordSource to a query which is sometimes undesirable… sometimes.

Create a Form based on tblACTIVITYJOURNAL to show [Journal Entry] and include it on your Main Form as Sub-Form linked on [Activity ID].

These are just options, there is nothing wrong with the way you are doing it.
Aug 29 '14 #6
ffrippy
16 New Member
jforbes,

thanks very much, I hadn't spotted that the unbound field wouldn't update on Requery, completely missed it. I solved it by using
Forms!frmactivityjournal!JournalEntry = ExistingAndAppendedText
where 'ExistingAndAppendedText' is the variable I used to store an earlier Dlookup as you suggested.

Many Thanks

ffripp
Sep 2 '14 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2420
by: ivan | last post by:
Access 97 I have a memo field in a footer on a subform. When I print the form, all data is printed except the data that was entered into the memo field. The memo field itself is printed (the border), but the data is missing. The following properties are set for the memo field: Visible: Yes Display when: always
2
6440
by: PMB | last post by:
Thank you in advance for any and all assistance. In a Form AfterUpdate Event I'm trying to first check and see if there is data in a memo field, if there is, I want to move to the end and append additional data to the next line of the memo field. Form Name: Transactions SubForm Name: TransactionsDetails
1
2577
by: j.mandala | last post by:
I have a memo field in an appointment application that stores session notes for group psychotherapy sessions. Each attendee of the group has an appointment record. I want to be able to write a general group note on a form, click a button, and have that note stored in the memo field for each person's appointment record. I created a form with an...
0
1624
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 pages etc. etc. Insert and update work, but updating of records with data in the memo field seem to crash/corrupt Access--but only on those...
4
5395
by: Mal | last post by:
I have an ACC 2000 database that has a strange behaviour I have a small table, with just a few fields... My report has very simple grouping and sorting, no code bar a NODATA event. I have a memo field When CAN GROW is set to NO everything works just fine. When CAN GROW is set to YES - watch out.... One record causes BIG
2
5728
by: Kevin | last post by:
Thanks for the very quick response posting that I can use a memo datatype to store large amounts of text. I understand that I can turn on "Can Grow" for a memo type, but is there either a property or VB code that will allow the text box to expand vertically as the user adds lines, so that it isn't necessary to use the vertical scroll bar to...
6
2688
by: Matt | last post by:
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, "...
4
7227
by: Mark Reed | last post by:
Hi All, here is what I am trying to achieve. I have a memo field on a form which users will need to add to as and when. I do not want them to be able to edit information which already exists within this field. My idea was to have the memo field locked on the form to stop edits. Place a command button by the memo field which opens an unbound...
2
3710
by: midlothian | last post by:
Hello Trying to update a memo field in an update query using the Replace function, and am getting a type conversion error. Here is my parameter: CStr(Replace(CStr(),"$",Chr$(13) & Chr$(10))) This fails. However, this also fails: CStr()
15
7323
by: sara | last post by:
I have a Memo field in a table to hold notes from a conversation a social worker has had with a client (this is for a non-profit). If the user needs to update the memo field, I need to find the original record (which I am doing fine - getting the correct key) and I need to update the "notes" with the new value from the form, which I store...
0
7276
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7408
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7581
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7142
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5714
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5110
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4773
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
1624
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
488
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.