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 gkittelson 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. loydlr

    Run-Time Error 3027

    neither one are primary keys.
  2. loydlr

    Run-Time Error 3027

    It's a relatively small database created to generate Bill of Materials. The database has not been split. All the data is in a single .accdb file except for a single table [tblPartsTemp] on a SQL server.
  3. loydlr

    Run-Time Error 3027

    Getting error 3027 and can't figure out why. Dim db As DAO.Database Dim rs As DAO.Recordset Dim strSQL As String Set db = CurrentDb strSQL = "SELECT tblBOM.PolyUOMcost, tblPartsTEMP.CurrentCost " & _ "FROM tblBOM " & _ "INNER JOIN tblPartsTEMP ON tblBOM.PolyID...
  4. loydlr

    Select Query Too Few Parameters. Expected 3

    Thank you so much for the help. It works perfectly now.
  5. loydlr

    Select Query Too Few Parameters. Expected 3

    I'm pretty clueless at this stuff, but I've managed to put together a query (just can't manage to make it work). Any suggestions would be greatly appreciated. strSQL = "SELECT DISTINCT tblContractDetails.ContractDetailsID, tblGradingSheet.ContractName, tblGradingSheet.Source" & _ "...
  6. loydlr

    Locked out by userform---- help

    I would have never even thought of that... Thank you very much Skip Problem solved. Loyd
  7. loydlr

    Locked out by userform---- help

    I can't... I've tried to get to the vba window, but the userform has the focus and I can't do anything. Tried opening additional spreadsheets to see if I could get to the form by using a different workbooks vba window, but as long as the userform is open it has the focus and I can do nothing...
  8. loydlr

    Locked out by userform---- help

    Skip, The problem is that I never completed the userform. The buttons on it have no code behind them. I realize it was a really dumb thing to do, but it's done and I can't figure out how to get around it. The userform cannot be closed either by the "x" button or by any controls on the...
  9. loydlr

    Locked out by userform---- help

    No dice... Thanks for the suggestion Tom. Loyd
  10. loydlr

    Locked out by userform---- help

    Is there some way to open the spreadsheet without executing the code in the workbook's open event?
  11. loydlr

    Locked out by userform---- help

    Basically a login window. Certain sheets would be made visible based on a username and password. It is actually not needed at all and does get in the user's way. At this point I would like to make it all go away, but I am stuck. I cannot get to the data because of the userform. If I could just...
  12. loydlr

    Locked out by userform---- help

    It doesn't work. The code that I used to disable the "x" button apparently traps this also. Private Sub UserForm_QueryClose(Cancel As Integer, _ CloseMode As Integer) If CloseMode = vbFormControlMenu Then Cancel = True MsgBox "Please use the button!" End If End Sub I appreciate...
  13. loydlr

    Locked out by userform---- help

    I've gotten myself into a fine mess here. I have a very large spreadsheet that I've been working on for a couple weeks now. I was trying to use a userform to show certain sheets based on a user login. I know nothing about vba so I've been reading and getting snippets here and there. What I ended...
  14. loydlr

    Not evaluating IIF correctly

    I've probably looked at a hundred of your posts to help sort out problems. As always, you have the answers. Thanks PHV...
  15. loydlr

    Not evaluating IIF correctly

    I can't get the following to evaluate correctly varTI5 = Nz(DLookup("TimeIn", "tblTimeCard", "Employee = '" & Me.Combo6 & "' AND DateIn = #" & varThuDate & "#")) Me.txtTI5 = IIf(IsNull(varTI5), "", Format(varTI5, "short time") & " " & Format(varThuDate, "mm/dd/yy")) Whether varTI5 is...
  16. loydlr

    Append linked table warning

    Thanks Tom..
  17. loydlr

    Append linked table warning

    I have several excel spreadsheets that I append with a query in Access 2003. I went into Options-Edit/Find and unchecked confirm action queries box, but I still get an annoying pop-up informing me that I am about to make changes to data in a linked table. "You won't be able to undo the changes...
  18. loydlr

    Close 2 of 3 excel workbooks from access

    Works like a charm. Thanks PHV...
  19. loydlr

    Close 2 of 3 excel workbooks from access

    I've managed to do what I set out to do. I am having a problem though. The code executes perfectly only every other time. I get the following error every other time the code executes. Run-time error 9 Subscript out of range It occurs on: Workbooks("Multiplier.XLS").Close...
  20. loydlr

    Close 2 of 3 excel workbooks from access

    Sorry to take so long getting back... Dim appExcel As New Excel.Application Dim strPath, strPath1, strPath2 As String appExcel.Application.DisplayAlerts = False strPath = "C:\TTDDB\Pricebook\Multiplier.xls" strPath1 = "C:\TTDDB\Pricebook\TotalCost.xls" strPath2 =...

Part and Inventory Search

Back
Top