473,385 Members | 1,409 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,385 software developers and data experts.

Clipboard to table question

17
I am working with a Reflections HP session and i created a macro within the VBA editor in Reflections where i copy to the clipboard the information i need. Now the issue is that i do not know how to get it from the clipbaord to either the table i need or on the form i have, either one will work really, Form would probably be easiest. Any assistance on this topic would be great and appreciated.


Expand|Select|Wrap|Line Numbers
  1.  
  2. Public Sub PasteData()
  3.         '****Copy starts here
  4.  
  5.     'CR = Chr(Reflection1.ControlCodes.rcCR)
  6.     'ESC = Chr(Reflection1.ControlCodes.rcESC)
  7.     Dim Tcode As String
  8.         Tcode = Session.GetText(3, 28, 3, 31)
  9.  
  10.     With Session
  11.  
  12.  
  13.             'rst!Taxcode = strtaxcode
  14.             'rst!Quarter = Quarter
  15.             'rst!year = year
  16.             'rst![Payee ID] = Trim(CStr(.GetText(8, 6, 8, 36)))
  17.  
  18.  
  19.         .Transmit "58FR" & CR
  20.         .StatusBar = "Waiting for Prompt: PRESS <RETURN> TO CONTINUE"
  21.         .WaitForString ESC & "&a23y00C                                                   PRESS <RETURN> TO CONTINUE", NEVER_TIME_OUT, rcAllowKeystrokes
  22.         .StatusBar = ""
  23.         .GetText 3, 28, 3, 31
  24.         '.SelectText StartRow:=3, StartColumn:=28, EndRow:=3, EndColumn:=31
  25.         ' Press EditCopy (Copy the selection and put it on the Clipboard).
  26.         .Copy rcSelection, 0
  27.         'DoCmd.TransferText acImportFixed, , "tblPayeeCNET"
  28.         rst!payeeidcent = Tcode
Jan 9 '09 #1
1 4090
puppydogbuddy
1,923 Expert 1GB
See this link for Functions to copy to and from the clipboard and an ms access form.

Microsoft Access tips: Clipboard Functions (32-bit)
Jan 11 '09 #2

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

Similar topics

0
by: joe | last post by:
I am writting a webmail client using mysql as the backend. I wrote the scripts using a table for each separate user. I am thinkig about putting all users in one table. the table structure now is...
3
by: Gwen Morse | last post by:
I'd like to alternate the rows in a table between having a shaded background and being transparent to the background. It's a table of people's names, phone numbers, and beeper numbers. So, by...
4
by: Daniel | last post by:
I'm having a tough time getting text and image to align in a table. When I add the image for some reason the text in that cell shifts to the bottom of the cell. Below is the code and the result. ...
2
by: WertmanTheMad | last post by:
MVP's and the like I am looking for suggestions , confirmation Let me start by saying bar none, performance is paramount with the queries to be retured off this view/table query. To that...
6
by: S Shulman | last post by:
Hi I want to write some VB code that copies to the clipboard then pastes it later, however the Clipboard is a system device that is shared between all applications and that may interfere with...
7
by: Jason Huang | last post by:
Hi, The SQL string is "select * from Customer where 0 > 1", and the DataSet should be null. Why MyDataSet.Tables.Count is 1, not 0? What kind of DataTable in this place? Thanks for help. ...
7
by: Stan Sainte-Rose | last post by:
Hi, I use this bit of code to generate dynamic tables in the page load section .... Dim ntable as New Table For i = 1993 To 2008 ntable = New Table ntable.ID = "Q" + i.ToString .... ....
2
by: Gordon | last post by:
VB.Net 2003 Standard - Creating ASP.Net Web Application In design mode, I can drag a html table from the toolbox to the work area but I can't seem to be able to select individual cells or...
4
by: Ron Hinds | last post by:
I know this is a HTML question, but I can't seem to find an *active* Microsoft HTML newsgroup. If anyone knows of one... Or maybe someone can help me here. The MSDN documentation for the TFOOT...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.