Search results

  1. pdx_man

    Automatic Field Update based on date

    Since this is a calculated field, Date() > Expiration, this should be done in a query. SELECT FirstField, SecondField, Expiration, Status: GetExpStat([Expiration]) FROM YourTable Public Function GetExpStat(ExpDate As Date) As String Select Case DateDiff("d", Date, ExpDate) Case...
  2. pdx_man

    Create Table from truncated info from other table

    There is a Wizard that starts when you add a combo box which allows you to select an option to have the result look up a record on a form. Use this. You can then change the recordsource to only return DISTINCT results, so you wont get the duplicates. PBaldy, you beat me to it. :D
  3. pdx_man

    SQL Backend

    What was the problem and the fix. Please post so the next person searching for connection string issues can perhaps use your research. That is what we are all about here. :D
  4. pdx_man

    Comma-delimited list - Query

    Well, here are my thoughts. Change this function to a SUB and call it from your form. Don't add the records in another routine, do it in your SQL Statement and add a BatchAddNum field to your AssignedBatches table: Dim LastAdd Long LastAdd = DMAX("BatchAddNum", "AssignedBatches") strSQL =...
  5. pdx_man

    Just being curious…

    Shouldn't that be [Name]?
  6. pdx_man

    Comma-delimited list - Query

    Wow, I've been looking at your code and it is confusing. Is the end-goal here to return the BatchNums that have been newly entered into the AssignedBatches table? It appears you first are getting #n of the batches in the MasterBatch table that are not in the AssignedBatches table. Then, you...
  7. pdx_man

    ODBC Driver

    MDAC = Microsoft Data Access Components Go here: http://www.microsoft.com/downloads/details.aspx?FamilyID=8f0a8df6-4a21-4b43-bf53-14332ef092c9&DisplayLang=en This will allow you to check the version that you are currently using as well as check the version of some other components. It also...
  8. pdx_man

    ODBC Driver

    Spanish title. No difference. I'm guessing your user had an MDAC change ...? Reload the version of MDAC you company currently uses.
  9. pdx_man

    passing a variable

    I've always found setting the Tag property useful.
  10. pdx_man

    probably something simple

    Try changing: s.OrderID FROM Orders p To p.OrderID FROM Orders p in both places Just to let you know, this will give you customers who have placed orders in 1996 AND 1997 ... not OR ...
  11. pdx_man

    Update Error

    Hmmm ... why are you using DLookUp? UPDATE Table_A SET Address = Table_B.Address FROM Table_A INNER JOIN Table_B ON TableA.ID_Number = TableB.ID_Number
  12. pdx_man

    Password protect VBA code

    You can leave the BE in 2002, but it may be easier to maintain going forward if both are in the same version. Setting a password for the MDE is optional and can be done in the MDB or the MDE.
  13. pdx_man

    Help - need to extract year from a short date field

    Try: Year(YourField)
  14. pdx_man

    stored procedure to run query and then insert rows

    I'm guessing you have this query defined as a VIEW since you are returning the TOP 100 PERCENT with an ORDER BY clause. Lets call it YourQView. You are going to have to add the fields you need in the payrollers1 table to the SELECT part of YourQView. Those being the ID fields. From where...
  15. pdx_man

    combine info from same table

    If Username is to be a calculated field, then do not store it. Just alias to calculation in a VIEW, then reference it where you would your table. Create View YourView AS SELECT Forname, Surname, Forname + '.' + Surname AS Username FROM YourTable But, if you absolutely want to: UPDATE...
  16. pdx_man

    Problem with Update statement and two tables...

    Try: UPDATE InventoryComponent SET QtyOpen = 31 FROM CompanyPurchasesDetailsComponents INNER JOIN InventoryComponent ON CompanyPurchasesDetailsComponents.PackageItem = InventoryComponent.PackageItem WHERE (CompanyPurchasesDetailsComponents.OrderNumber = '12345-1') AND...
  17. pdx_man

    Password protect VBA code

    You can only debug in the MDB version, since the code will be in its compiled form in the MDE, hence, you can't view the code. If you have an error, you will need to replicate the error in the MDB version to be able to get to debug mode.
  18. pdx_man

    Text to Time Conversion

    Check out the CDate() and Format functions.
  19. pdx_man

    SQL Backend

    Need more detail, please.
  20. pdx_man

    Sql error

    What datatype is [Cylinder Number]? Have you tried stepping through the code and checking the values? Change to this: SqlStr = "SELECT * From tbl_Delupdate Where [Cylinder Number] = '" & Stringy3 & "'" Debug.Print SqlStr Set rs = db.OpenRecordset(SqlStr) And put a code break on the line...
Back
Top Bottom