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 bkrike 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: *

  • Users: hedgracer
  • Content: Threads
  • Order by date
  1. hedgracer

    Run time error 3001 Invalid Argument when using DoCmd.Transfertext

    I have the following VBA code: Dim dkg As Variant, str As String dkg = Application.FileDialog(msoFileDialogFilePicker).Show str = Application.FileDialog(msoFileDialogFilePicker).SelectedItems(1) DoCmd.TransferText acImportDelim, "OnyxSRImportSpecification"...
  2. hedgracer

    ADODB in sub not working

    I have the following code in a Public Sub: Public Sub DailyCash_Click() Dim cmd1 As New ADODB.Command Dim errtype As String On Error GoTo ErrorHandler errtype = "vb" If (cnnP.State = adStateOpen) Then Else ConSrvr End If Screen.MousePointer...
  3. hedgracer

    Another Text box sum in footer in Access report question

    Another report with a different set of problems. This report has all the calculations in the Account Header (don't ask me why; I didn't write it) and the text box it is referencing is named net_repo and has the following calculation in it...
  4. hedgracer

    Text box sum in footer asking for Parameter value

    Let's just say I have never ran into this before and have been doing access reports a long time. Also, this is not my report and there is no documentation. I have a Label9 Header and a Label9 Footer with detail between them. I have inserted the following text box formula in the detail...
  5. hedgracer

    Docmd transferspreadsheet with.xslx

    I have the following line in vba in access 2007: DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "Floor_Execution_Import", str, True, "B4:H30" The format of the data in the .xslx is as follows: ELECTRONIC Date ELECTRONIC Ticket # Account # B/S Quantity Month Product...
  6. hedgracer

    String or binary data would be truncated on insert problem

    I have never, ever ran into this before. I am inserting data from one table to another and the insert is only one field to another field. Both fields are varchar(50). The field being transferred from populated just fine using an Access 2007 text import function with no errors. When I try to do...
  7. hedgracer

    Pulling data from subreport's detail area to report's detail area

    I have a subreport detail area that has the following detail: Box SumOfYTDConverted 5700 1200.00 5720 1699.00 5740 2000.00 The subreport is named Sec_Combined_Test. In my main report I have a the subreport named...
  8. hedgracer

    Combobox bound column property problem

    I have a combobox in an Access 2007 form that has two columns. I am trying to get the second column to bind and update to a table when selected by the user but each time I select that row the first column is put into the cell. The Bound Column property is set to 2. Is there something I am doing...
  9. hedgracer

    VBA error message from ADODB connection

    We have Access databases which we are converting from SQL Server 2005 back ends to SQL Server 2008 back ends for tables with the Access database as a front end. During the test conversion I ran a form which has a button and received the following error: Run-time error'-2147467259 (800004005)'...
  10. hedgracer

    VBA error message from

    We have Access databases which we are converting from SQL Server 2005 back ends to SQL Server 2008 back ends for tables with the Access database as a front end. During the test conversion I ran a form which has a button and received the following error: Run-time error'-2147467259 (800004005)'...
  11. hedgracer

    Replacing null value with zero in text box

    I have a text box (shows result of a query) which factors into a sum later on in a report. This text box sometimes has a null value in it which in turn throws an error in the sum field. I need to set this text box to zero if the result is null. I have tried the following: 1...
  12. hedgracer

    Error handling with primary key errors in table in data entry

    I have searched all of the previous postings on this item and tried every one of their suggestions. Here is my problem. I have an Access form where the user enters a row and has a primary key in the table. The error number is 3621. I have tried to set up the following: Private Sub...
  13. hedgracer

    Error handling with primary key errors in table in data entry

    I have a table that has the following columns: Reg Dept Electronic Volume Outcry Volume Volume Reg and Dept are primary keys in this table. Sometimes it is necessary to add a reg and dept (this is a Access 2007 front end to an SQL Server 2005 back end table) with the associated volumes. I want...
  14. hedgracer

    SQL Server 2005 management studio graphical setup

    I am hoping someone can help me on this one. I have googled this to death to no avail. I used to have Object Explorer docked on the left hand side of my management studio and then the query screen would come up beside of it. Now the Object Explorer has disappeared and I cannot get it to dock...
  15. hedgracer

    variable usage in cast and column naming

    Here is my code: use actg --NEED PARAMETERS FOR CURRENT MONTH AND NUMBER OF MONTHS DECLARE @CurrMth NUMERIC(18,0); SET @CurrMth = 9; DECLARE @CurrMthName VARCHAR(3); IF @CurrMth = 1 BEGIN SET @CurrMthName = 'Jan' END ELSE if @CurrMth = 2 BEGIN SET @CurrMthName = 'Feb' END ELSE IF...
  16. hedgracer

    Update query problem - How to use select stmt

    Here is what I am trying to do. I have a table variable : DECLARE @NITable table ( Reg Varchar(1), Dept Varchar(3), CurrentMonth Numeric(18,0), CurrentYTD Numeric(18,0), CurrentAvg Numeric(18,0), PriorYTD Numeric(18,0), PriorAvg Numeric(18,0) ) The reg and dept is populated from two...
  17. hedgracer

    Problem with Docmd.TransferText

    I have the following code: Private Sub cmdImportRanFile_Click() strCnxn = set_connection() Set cnxn = New ADODB.Connection cnxn.Open strCnxn strSQL_Execute = "dbo.Ran_BillingDelete" cnxn.Execute strSQL_Execute, , adExecuteNoRecords Dim dkg As Variant, str...
  18. hedgracer

    Problem with Docmd.TransferText

    I have the following code: Private Sub cmdImportRanFile_Click() strCnxn = set_connection() Set cnxn = New ADODB.Connection cnxn.Open strCnxn strSQL_Execute = "dbo.Ran_BillingDelete" cnxn.Execute strSQL_Execute, , adExecuteNoRecords Dim dkg As Variant, str...
  19. hedgracer

    Variable usage inside insert statement

    I have the following code: DECLARE @sYEARMO AS VARCHAR(8); SET @sYEARMO = (SELECT max(Business_Date) FROM [Exchange_Rates_Entry_Table_Daily]) PRINT @sYEARMO TRUNCATE TABLE [Exchange_Rates_Entry_Table_Monthly] INSERT INTO [Exchange_Rates_Entry_Table_Monthly] ( [Currency_Name]...
  20. hedgracer

    ForEach Loop container question

    I am using visual studio 2005 and am trying to use a foreach loop container for the first time and have run into a snag right off the bat. I want to loop through a directory and select a file from that directory, copy that file into that same directory and rename that file. Every resource I...

Part and Inventory Search

Back
Top