473,669 Members | 2,385 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

date stamp a memo/text box automtatically

4 New Member
I want to automatically date stamp a memo/text box when i click a combo box. i know how to start the code bulider in the event properties of the combo box and get it to select the memo/text box i.e combo123.SetFoc us and combo123.Value = today () but what i would like it to do is to go to the end of whatever text is already in the memo/text box, select a new line, date stamp it and select another line ready to add more notes
Sep 15 '07 #1
6 7066
puppydogbuddy
1,923 Recognized Expert Top Contributor
I want to automatically date stamp a memo/text box when i click a combo box. i know how to start the code bulider in the event properties of the combo box and get it to select the memo/text box i.e combo123.SetFoc us and combo123.Value = today () but what i would like it to do is to go to the end of whatever text is already in the memo/text box, select a new line, date stamp it and select another line ready to add more notes
If your memo field is called Memofield then this code in the On Enter event of your textbox should do what you want. Obviously change the name below to the actual name of your field...

Private Sub MemoField_Enter ()
Me.MemoField = Me.MemoField & " " & Now()
End Sub
Sep 16 '07 #2
puppydogbuddy
1,923 Recognized Expert Top Contributor
If you want to update the memobox every time you make a selection from a combo box, use the following code:

Private Sub YourCombo_After Update()
Me.MemoField = Me.MemoField & " " & Now()
End Sub
Sep 16 '07 #3
Ned1966
4 New Member
If you want to update the memobox every time you make a selection from a combo box, use the following code:

Private Sub YourCombo_After Update()
Me.MemoField = Me.MemoField & " " & Now()
End Sub

Thanks... just one more thing. The command above leaves the text in the cell highlighted. How do i get it to send the cursor to the end of the text then carriage return to start a new line?
Sep 17 '07 #4
puppydogbuddy
1,923 Recognized Expert Top Contributor
Thanks... just one more thing. The command above leaves the text in the cell highlighted. How do i get it to send the cursor to the end of the text then carriage return to start a new line?
Try this:

Private Sub YourCombo_After Update()
Me.MemoField = Me.MemoField & " " & Now() & vbCr & vbLf
End Sub
Sep 17 '07 #5
Ned1966
4 New Member
Try this:

Private Sub YourCombo_After Update()
Me.MemoField = Me.MemoField & " " & Now() & vbCr & vbLf
End Sub

thanks again one last thing how do i get the cursor to flash at the end of the text ready to type rather than select and highlight the whole of the text box.
Sep 18 '07 #6
puppydogbuddy
1,923 Recognized Expert Top Contributor
thanks again one last thing how do i get the cursor to flash at the end of the text ready to type rather than select and highlight the whole of the text box.

Try this:

Private Sub YourCombo_After Update()
Me.MemoField = Me.MemoField & " " & Now() & vbCr & vbLf
Me!MemoField.Se lStart = Me!MemoField.Se lLength
End Sub
Sep 18 '07 #7

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

Similar topics

1
2039
by: Monica Roman | last post by:
Hello, help please. I have a little macro that copies the date from a date/time field to a memo field, BUT instead of going to the memo field it finds the first date/time field and tries to copy there. My first thought is to change the date to text but how? Thanks!!! Monica
3
6414
by: fong.yang | last post by:
I have a textbox on my form label date/time. I also added a date/time column to my table as well. The table already contains records before the date/time column was added. How do I setup a date/time stamp to that textbox or column for any changes that is made to any records? I've added =Now() on the AfterUpdate properties of the text box, but it is only adding a stamp if new records are added not when there are just changes made. ...
5
2103
by: Des | last post by:
I have to do an events calender for a church. The events display will be limited to that week. If someone went in today Wed 24th I want to display 21st to 27th. I dont want any code samples, just the functions that find the day of week and a function that can (in this case) subtract 3 days to get sunday and add 7 for saterday. I can do the rest. Desmond.
1
1681
MitchR
by: MitchR | last post by:
I have created a text box and scripted it to receive a line of text and current date upon completion of a scripted event. My question is this. I need to script this text box and date stamp to receive multiple entries. The Date stamp is captured by a field in my primary table and saved. I need to be able to script multiple date stamp. Here is my code for the date Stamp: !! = "Date of Execution " & myDate & "; "
1
7291
by: Susan Bricker | last post by:
Greetings. I have a report (actually all of my reports in an MDB) that I want to date/time stamp at the bottom. Previously, I had used the builtin function of Now(). I thought that would give me a date and time value in the format: "month day, year hour:minutes:seconds". However, I noticed that only the date was printing (e.g.; January 23, 2006). This is in Access 2000. BTW ... The way I display the date/time stamp in a text field...
8
2420
by: Trev | last post by:
Hi Can anyone point me in the right direction here, I would like to open a table in access 2003 by date. I have an asp web page which needs to read data from a table with each days today's date (which ever day that is) then a new table is created with today's date. Example: I have a table called 17-may-2007 my ASP page reads this table for 24hours then tomorrow (12:00 midnight 18th) I will have a new table called 18-may-2007 and the...
3
1923
by: climber | last post by:
Hello, I am attemping to append a memo box or text box with a time/date stamp. What I would like to happen is either when I click a button the time/date stamp prints below what is already typed into the text box or it prints brlow the entered text whenever I click on the text box. Ex. Hello how are you! 6/5/07 1:15:00 I am fine!
3
2294
by: climber | last post by:
Hello, I am attemping to append a memo box or text box with a time/date stamp. What I would like to happen is either when I click a button the time/date stamp prints below what is already typed into the text box or it prints automatically below the entered text when I click on the text box in order to make changes to the text box Ex. Hello how are you! 6/5/07 1:15:00 I am fine!
4
6802
by: SilentThunderer | last post by:
Hey folks, Let me start out by letting you know what I'm working with. I'm building an application in VB 2005 that is basically a userform that employees can use to "Clock in". The form allows the employee to enter their UserID and select "Login" or "Logout" and then click a submit. When the submit button is clicked, I want the application to dum the NT Userename, UserID, status (Login or Logout) and a date/time stamp into an MS Access...
0
8465
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8383
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8803
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8587
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8658
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6210
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4384
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2792
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
2
1787
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.