473,513 Members | 2,552 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Copy Fields in Text Format to Clipboard

I'm not sure this is even feasible. What I want to do is create a
command button. When this command button is pressed, it taes field
values and puts them into text format. I think I know how to do this
part thru code. Then I want to copy this text to the clipboard so
that I can paste it into a memo field. This is the part I need help
with.

I will create the text by the following method on the On Click Event
of the command button:

Dim strBaseLineText As String

strBaseLineText = "Project due date = " & Text1.Value & ". Project
completion date = " & Text2.Value

How can I copy this value into a clipboard or a at the end of the data
in a memo field?

Thank you,
Chris

Feb 2 '07 #1
1 4283
chris wrote:
I'm not sure this is even feasible. What I want to do is create a
command button. When this command button is pressed, it taes field
values and puts them into text format. I think I know how to do this
part thru code. Then I want to copy this text to the clipboard so
that I can paste it into a memo field. This is the part I need help
with.

I will create the text by the following method on the On Click Event
of the command button:

Dim strBaseLineText As String

strBaseLineText = "Project due date = " & Text1.Value & ". Project
completion date = " & Text2.Value

How can I copy this value into a clipboard or a at the end of the data
in a memo field?

Thank you,
Chris
IF your memo field is on a form you could enter
Me.YourMemoFieldName = Me.YourMemoFieldName & strBaseLineText

If not on the form, you need to find the record and then update it.
Dim rst As DAO.Recordset
set rst = CUrrentdb.openrecordset("YourTableName,dbopendynas et)
rst.findfirst "YourIDFieldName = " & Me.YourIDFieldName
if not rst.NoMatch then
rst.Edit
rst!YourMemoFieldName = rst!YourMemoFieldName & strBaseLineText
rst.Update
Endif
rst.close
set rst = Nothing
Feb 3 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
10444
by: Shyguy | last post by:
I want to create two buttons on a form. One would allow the user to Copy the contents of the current records memo field, the other would allow them to print. I set up a report based on the memo field, and it works. But, it seems wrong since I had to create a huge text box to accommodate memo fields with a lot of text. Thanks for any help,...
9
4633
by: (Pete Cresswell) | last post by:
I see this coming on a develpment effort that may materialize shortly. These guys don't want to mess around with automated imports from text feeds BC in the past they've had too many problems with same. Instead, they (heavy spreadsheet users...) want to "Copy and Paste" financial return percentages for various funds into the DB. The...
2
2669
by: Keith | last post by:
I'm trying to come up with a way to create a contextmenu that will do all the "standard" functions (cut, copy, paste, undo, etc). There seems to be a lot of information out there - but nothing seems to work for me. A few people refer to txt.copy() txt.paste(), etc. I'm not sure if those are old functions, but they do not work for me. ...
7
11601
by: lgbjr | last post by:
Hello All, I¡¯m using a context menu associated with some pictureboxes to provide copy/paste functionality. Copying the image to the clipboard was easy. But pasting an image from the clipboard is proving to be more difficult. These pictureboxes are bound to an AccessDB. If the user wants to add an image, they select an image using an...
1
2599
by: jvorselaars | last post by:
Does anybody how I can copy several fields into the clipboard. I have copied the code of the following microsoft website: http://support.microsoft.com/support/kb/articles/q210/2/13.asp But with this code i can only copy 1 string each time into the clipboard. I would like to copy more text fields, so for example I can paste it in excel and...
17
5079
by: Steve | last post by:
I'm trying to code cut, copy, and paste in vb 2005 so that when the user clicks on a toolbar button, the cut/copy/paste will work with whatever textbox the cursor is current located in (I have about 20 textboxes on the form). Also to ensure that the button can't get used if the cursor isn't in a textbox field. And to ensure the contents of...
1
3782
by: Grant Smith | last post by:
I've got an application that I can copy some text out of the RichTextBox control. I would like to keep the formatting so I'm able to copy it to the Clipboard with RTF formatting. I have no trouble pasting the formatted text into wordpad (which supports RTF formatting) but it won't paste into notepad (no RTF support). I know that if I copy...
11
9625
by: John | last post by:
Hi In a winform app I need to provide a menu with Cut, Copy and Paste options., What code do I use to accomplish cut, copy and paste features for fields on a winfrom? Thanks Regards
3
7269
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, i'm using the following in my console app: My.Computer.Clipboard.SetText(sb.ToString()) i'm getting inconsistent results with the copy. sometimes it works and most of the time i get the following error below. i just keep executing until it works. i'm getting the following error:
0
7565
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
7128
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
7543
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...
1
5103
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
4759
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
3255
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3242
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1612
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
473
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.