Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. trickshot1126

    Excel VBA: Copy range into DOS system

    I have attached a screen shot showing the immediate window in excel, the clipboard pasted into notepad and also pasted into the attachmate window. http://files.engineering.com/getfile.aspx?folder=446638ed-0882-471f-ba38-811e5b7a99c9&file=Capture.JPG
  2. trickshot1126

    Excel VBA: Copy range into DOS system

    Yes. And when i paste the info into attachmate it does not work. The first line is cut properly but the second line does not cut at the 69th character like the first.
  3. trickshot1126

    Excel VBA: Copy range into DOS system

    Thank you for that code...It's in the right direction. This is the string of text i am getting in the debug window: EFF DATE: 12/14/2015 CALLER NAME: John Doe POLICY TYPE: Connections N OTES: This is an example of a note that needs to be copied into Attachmate. Currently the VBA copies each...
  4. trickshot1126

    Excel VBA: Copy range into DOS system

    You are correct. If i were to just allow it to count the 1035 characters it would not work because attachmate would just cut everything after the 69th character. Is there a way to to this in VB rather than concantenating on another sheet?
  5. trickshot1126

    Excel VBA: Copy range into DOS system

    Although it happens, it is not often that a note would completely fill up the space of 1,035 characters. It happens often enough that i am not worried about solving for this scenario at the moment. I have uploaded an additional screen shot of the format i would prefer the output to be in the...
  6. trickshot1126

    Excel VBA: Copy range into DOS system

    When the VBA runs it pulls the information in rows 4 - 9 and row 65. In this case, yes. The code does not know to add a new line to continue with the note due to the limitations in the Attachmate window. What i may need to do is copy the text without the "VBNewline" and have a function that...
  7. trickshot1126

    Excel VBA: Copy range into DOS system

    Hi Skip, The following are the links for two screen shots. The first is the Attachmate screen and second is the excel from the excel doc. http://files.engineering.com/getfile.aspx?folder=10f3b721-61df-4c96-b0b6-784a4174a5cb&file=Attachmate_PUUC_Ex1.JPG...
  8. trickshot1126

    Excel VBA: Copy range into DOS system

    Hi Skip, thank you for the reply. We use EXTRA! X-treme as our mainframe system. The page that the note needs to be pasted to does not have field names. It is just a free form section for notes. I have attached a screenshot of the Attachmate screen. I added the numbers in green to show the...
  9. trickshot1126

    Excel VBA: Copy range into DOS system

    Good Morning, My apologies for placing this in the incorrect forum. I will attempt to make my request more clear. If need be please move the thread to the proper thread. An excel document has been created in which a user inputs information throughout a call with a customer. Once completed...
  10. trickshot1126

    Excel VBA: Copy range into DOS system

    Hello and happy Friday! I have an excel document that the user inputs information. The information will ultimately be pasted into a dos based system that keeps records of all notes for each person. The dos system note size is limited to 1,035 characters or 69 spaces left to right and 15 lines...
  11. trickshot1126

    Pass Parameter from Form to Query

    Ahhh Ok... I understand. That's a great idea! Thank you! Rob
  12. trickshot1126

    Pass Parameter from Form to Query

    Thanks dhookom for the reply. When i placed the iif in the criteria field i removed the quotations around between and other fields. I had tried using an unbound textbox on the form that included the iif statement and filled the text box with text depending on the option group selection...
  13. trickshot1126

    Pass Parameter from Form to Query

    Good afternoon, I have searched high an low and tried as many workarounds that i can think of... I am still in the same place as i was at 8 Am yesterday morning. I am attempting to run a query that is filtered by dates. I have a form that i have created with an option group to provide options...
  14. trickshot1126

    VBA SQL, INSERT INTO where SELECT is VALUE

    Thank you all for your help. I was able to get the code to work by reworking the order i had the insert into fields. See the working code: DB.Execute " INSERT INTO tblFetchTimer (LANID,PolNum,FetchTime,TS)" _ & " SELECT '" & UsName & "', '" & Me.txtPolNum & "', '" &...
  15. trickshot1126

    VBA SQL, INSERT INTO where SELECT is VALUE

    Thanks SkipVought... I will review that. Andrzajek, the first option the error is get is: Run-Time erro '3075': Syntax error (Missing Operator) in query expression 'LAST T'. Debug.Print = INSERT INTO [tblFetchTimer] VALUES ((SELECT LAST TS FROM tblPolNum WHERE tblPolNum.LANID='rlh745' AND...
  16. trickshot1126

    VBA SQL, INSERT INTO where SELECT is VALUE

    Hello and happy holiday weekend for us in the US. I'm having an issue with some SQL code formatting. I am attempting to insert into a table where one of the values would be selected from another table and the remainders are set earlier in the SUB. TSsql = "INSERT INTO...
  17. trickshot1126

    Copy Table Fields

    Worked like a charm MajP... Thank you!
  18. trickshot1126

    Copy Table Fields

    So i have added the code MajP and it looks like this: Sub copytoVehChgtoCCP() Dim db As DAO.Database Dim rs As DAO.Recordset Dim qDef As DAO.TableDef Dim fld As DAO.Field Dim RowData As String Dim x As Integer Set db = CurrentDb() Set qDef = db.TableDefs("tblvehchgT") Set rs =...
  19. trickshot1126

    Copy Table Fields

    Thanks dhookom... It was not compiling and the parenthesis are what i was missing. But i think MajP's way is going to work much better. Thanks also to MajP! I was trying to loop it but could not quite get the code to work. I will test it and report back!
  20. trickshot1126

    Screen Scrape to Access Table

    Hi Skip, Thanks for the note. I'll keep that in mind. The VBA difference between excel and access are just enough to be frustrating. BTW... The solution was as simple as completely removing all the excel specific coding and replacing it with what access needs. Pretty basic stuff really but...

Part and Inventory Search

Back
Top