473,386 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Copying Textfield data to clipboard in VB 6

How to copy selected (s) textfield, which those selected through checkbox

I like to copy in clipboard. Access textfield data when front of the textfield checkbox is checked if not checked it should not copy in clipboard.

If text field has data like that

altaf/ahmed mr one field checked
goodguydude@thisandthatandtheother.com one field checked
ca gf767577 ca 17-may-60 M 12-mar-12 six field checked with one checkbox

Upon pressing Action button (s)
I like to have data in clipboard like this

-altaf/ahmed/+
pe=goodguydude@thisandthatandtheother/
3docs/ca/gf767577/ca/17-may-60/m/12-mar-12/altaf/ahmed mr-1.1
Jan 1 '09 #1

✓ answered by QVeen72

Hi,
Prepare a Text some thing like this:
And Set it to Clipboard:

Expand|Select|Wrap|Line Numbers
  1. Dim MyStr As String
  2. MyStr =""
  3. If ChkPName.Value = vbChecked Then
  4.     MyStr = MyStr & txtPName.Text & "/"
  5. End If
  6. If chkEMail.Value = vbChecked Then
  7.     MyStr = MyStr & txtEMail.Text & "/"
  8. End If
  9. ClipBoard.SetText = MyStr
  10.  
Regards
Veena

8 6202
Dököll
2,364 Expert 2GB
Happy New Year!

I went ahead a modified your email since it looks like you wanted to make a point with it.

Are you able to at least establish a connection to your Access back end?

Please post what you have working thus far for a quick look...

I also noticed your title did not say too much. Please let us know if okay as is
Jan 1 '09 #2
debasisdas
8,127 Expert 4TB
your question is so confusing.
can you please clarify.
Jan 1 '09 #3
thanks for asking my problem
could you tell me you email address ican send you attachment and explain
Thanks
Altaf Ahmed
email removed
Jan 1 '09 #4
Hi
I have made database file which has 8 textfield in form view and 3 checkbox to select them and one button for copy command as follow

altaf/ahmed mr one field checkbox
"removed email here too" one field checkbox
ca gf767577 ca 17-may-60 M 12-mar-12 six field checkbox
copybutton



How to copy selected (s) textfield, which those selected through checkbox

I like to copy in clipboard. Access textfield data when front of the textfield checkbox is checked if not checked it should not copy in clipboard.

If text field has data like that

altaf/ahmed mr one field checked
"removed email here too" one field checked
ca gf767577 ca 17-may-60 M 12-mar-12 six field checked with one checkbox

Upon pressing Action button (s) copybutton
I like to have data in clipboard like this

-altaf/ahmed/+
pe="removed email here too" /
3docs/ca/gf767577/ca/17-may-60/m/12-mar-12/altaf/ahmed mr-1.1
Jan 1 '09 #5



Hi
I have made database file which has 8 textfield in form view and 3 checkbox to select them and one button for copy command as follow

altaf/ahmed mr one field checkbox
"email address removed" one field checkbox
ca gf767577 ca 17-may-60 M 12-mar-12 six field checkbox
copybutton



How to copy selected (s) textfield, which those selected through checkbox

I like to copy in clipboard. Access textfield data when front of the textfield checkbox is checked if not checked it should not copy in clipboard.

If text field has data like that

altaf/ahmed mr checked
"email address removed" checked
ca gf767577 ca 17-may-60 M 12-mar-12 checked six field with one checkbox

Upon pressing Action button (s) copybutton
I like to have data in clipboard like this

-altaf/ahmed/+
pe="email address removed"/
3docs/ca/gf767577/ca/17-may-60/m/12-mar-12/altaf/ahmed mr-1.1
Attached Images
File Type: jpg databae image.jpg (15.8 KB, 183 views)
Jan 1 '09 #6
Dököll
2,364 Expert 2GB
@ALTAFAD
I removed your email previously because we're trying to protect our visiters from spammers and so on. You can PM someone for thanks, but I believe we'd rather you post everything here for all to see...
Jan 2 '09 #7
debasisdas
8,127 Expert 4TB
You may try to use Clipboard.SetText
Jan 2 '09 #8
QVeen72
1,445 Expert 1GB
Hi,
Prepare a Text some thing like this:
And Set it to Clipboard:

Expand|Select|Wrap|Line Numbers
  1. Dim MyStr As String
  2. MyStr =""
  3. If ChkPName.Value = vbChecked Then
  4.     MyStr = MyStr & txtPName.Text & "/"
  5. End If
  6. If chkEMail.Value = vbChecked Then
  7.     MyStr = MyStr & txtEMail.Text & "/"
  8. End If
  9. ClipBoard.SetText = MyStr
  10.  
Regards
Veena
Jan 2 '09 #9

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

Similar topics

2
by: Gey-Hong Gweon | last post by:
Is there a way to copy a PIL image to windows clipboard (as a dib image or a bitmap, I suppose)? What I would like to accomplish is to do a fast copy and paste of images from my python...
0
by: Ata | last post by:
Hello, I am trying to copy the contents of the output of SQL Reporting Services to a PowerPoint slide. For this, I am using SQL Reporting Services to obtain an IMAGE stream, which I paste to the...
16
by: DataBard007 | last post by:
I have an Access97 application whose form contains many text boxes. What do I have to do in order to copy the contents of one of these text boxes to the clipboard? I want to do this so I can then...
8
by: John Smith | last post by:
Hi folks, I know how to place text into the user's clipboard: Clipboard.SetDataObject("My Copied Text"); but how do I place a file in there? So, if I have a file C:\test.txt, how can I place...
9
by: Christian Blackburn | last post by:
Hi Gang, I don't know what to make of all of this, but I'm having nothing, but trouble copying data to the clipboard which should be the easiest thing in the world. The only systems I can get...
4
by: fred | last post by:
I am trying to copy a file onto the clipboard but I am not having any success. Perhaps someone can help me out. I have the full file name from my application and to put it onto the clipboard I...
4
by: gordon | last post by:
Hi I hav e a smallish app that has a datagridview. A user can select some columns in the datagrid, and i have a button that i would like to use to copy the rows that are selected to the...
19
by: Jeff | last post by:
....working with visualweb.net 2005 and vb. ....trying to simply copy the contents from a textbox to the clipboard. I've looked at a large number of places on line and they give me various...
0
by: MathewJose | last post by:
Hi, I have a DatagridView in windows form.It has got a column which has some names that are populated from master table in database.Now i need to copy a set of data against these names. I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...

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.