Search results

  1. B

    Compile Error, Type Mismatch

    I am not sure why i am gettting a compile error, type Mismatch. Maybe my brain is fried and I cant see it. Dim uName As String Dim strfName As String Dim strlName As String Dim db As DAO.Database Dim rs As DAO.Database Dim iSQL As String uName = CStr(fOSUserName) If IsNull(uName) Then...
  2. B

    Combine Firstname and Last Name

    Okay, I got it thank you so much!
  3. B

    Combine Firstname and Last Name

    Its not showing it to me after several (CTRL +F5)'s :banghead: :banghead:
  4. B

    Combine Firstname and Last Name

    pr2-eugin, I think you forgot to post the code?
  5. B

    Combine Firstname and Last Name

    I did say it
  6. B

    Combine Firstname and Last Name

    Bob, I tried that too
  7. B

    Combine Firstname and Last Name

    Here is the full code eventhoough this is what is throwing the error: "SELECT tblProjects.ProjectID, tblProjects.ProjectName, tblProjects.ProjectDescription, " & _ "(tblOwner.oFirst & " " & tblOwner.oLast) AS FullName, tblProjectType.ProjectTypeDesc, " & _...
  8. B

    Combine Firstname and Last Name

    Neither one work.
  9. B

    Combine Firstname and Last Name

    I know this is easy and I have done it before, but just can't seem to wrap my head around it again. Writing the query in VBA. SELECT (tblOwner.oFirst" & " tblOwner.oLast) AS FullName FROM tblOwner Error code is: Syntax error (missing Operator) in query expression '(tblOwner.ofirst...
  10. B

    Excel Instance wont close form Access VBA

    Well I found another orphan after Bilbo_Baggins_Esq helped me. This is the code that was causing the issue: With xWs Do Until varLoop > varRows .Rows(varLoop & ":" & varRow1).Select With Selection .Delete Shift:=xlUp End With varLoop =...
  11. B

    Excel Instance wont close form Access VBA

    Bilbo_Baggins_Esq ~ I don't know how to manipulate the data via access. I need rows/lines deleted that are headers to the report.
  12. B

    Excel Instance wont close form Access VBA

    Bilbo_Baggins_Esq ~ you are a genius! thank you so much!
  13. B

    Excel Instance wont close form Access VBA

    Like this? Set xApp = New Excel.Application Set xWb = xApp.Workbooks.Open(strFile) Set xWs = xWb.Worksheets("Sheet1") xWs.Activate xApp.Visible = True 'Import the txt file into excel With xWs.QueryTables.Add(Connection:= _ "TEXT;C:\MK PHA.txt", Destination:=Range("$A$1"))...
  14. B

    Excel Instance wont close form Access VBA

    I have narrowed it down to this but I cant figure out where the closing option should go, since Excel.EXE *32 is still in the task manager. Set xApp = New Excel.Application Set xWb = xApp.Workbooks.Open(strFile) Set xWs = xWb.Worksheets("Sheet1") xWs.Activate xApp.Visible = True 'Import the...
  15. B

    Excel Instance wont close form Access VBA

    Thank you very much for the pointers. I was just looking at the code and thinking the same thing about the activesheet.QueryTables.add. I git that from a macro created in excel. not the best practice.
  16. B

    Excel Instance wont close form Access VBA

    'Declare variables Dim db As DAO.Database Dim rs As DAO.Recordset Dim xApp As Excel.Application Dim xWb As Excel.Workbook Dim xWs As Excel.Worksheet Dim strFile As String Dim varRows As Variant Dim varLoop As Variant Dim varRow1 As Variant Dim strTable As String 'Location of where the file is...
  17. B

    Excel Instance wont close form Access VBA

    Okay, i guess I am not grasping that concept. I will post my code. It is long.
  18. B

    Excel Instance wont close form Access VBA

    Bilbo Baggins Esq ~ I have read your post but can not find where I am leaving it open\orphaned. If I post my code will you look at it?
  19. B

    Excel Instance wont close form Access VBA

    How did you get it to close? I am having the same issue and I have the code that should work. xWb.Close xApp.Quit I have even tried: xWb.Close True xApp.Quit I am using access 2010
  20. B

    Remove Date from a Record using SQL VBA

    Not only did I have a space there I had ArrivalTime twice... i swear my brain is fried. Thank you vbaInet and Boblarson, the code works as intened! Thank you so much!
Back
Top Bottom