Recent content by bvan

  1. B

    Transpose function for Access

    I am using it for regression testing of software. By transposing tables (horizontal to vertical), you can easily compare field by field for differences in data.
  2. B

    Rounding Up

    Not quite that simple NIELEG. What if the number is a whole number (no decimals) to start with. In that scenario, 3 would become 4.
  3. B

    Counting column data

    Sounds like a good use for a crosstab query. Questions on the x axis, Answers on the Y axis.
  4. B

    month string to numerical month

    The datepart function will not understand a date that shows month only. You will need to add a space and a 1 to the string to run the function. Again, assuming the field is called txtdate, use the following: datepart("m",datevalue([txtdate] & " 1"))
  5. B

    Simple Delete query

    Do you have a primary key in both tables? The lack of a primary key often makes recordsets not updateable.
  6. B

    3021 no current record

    I believe that you will need to put a "rst.movefirst" line in before you start your loop. The recordset is starting out at BOF=true, so you are not on a record yet. Make sure that you test for an empty recordset before moving to any record or it will throw an error if that occurs.
  7. B

    Removing the first character using VBA

    Remove first char This should do the trick.. Mid([Fieldname],2)
  8. B

    Excel table to Access table Merge/Sync

    Excel Problem You can link to an Excel spreadsheet. Once the spreadsheet is linked, you can use it in a query just like a table. The only thing is that the name of the spreadsheet can not change. The link will only work if the full path and name of the spreadsheet are the same. You can...
  9. B

    Transpose function for Access

    I looked high and low for this. It can be done by import/export in Excel, but this works very well. (Code is from the Microsoft Knowledge Base). Function Transposer(strSource As String, strTarget As String) Dim db As DAO.Database Dim tdfNewDef As DAO.TableDef Dim fldNewField As...
  10. B

    adding points to a table on a time period

    int(datediff("d",[YourStartingDate],date())/30)*5 Run this daily in an update query.
  11. B

    Access 97's capacity...

    Correction: Access97 has a limit of 1 gigabyte, not 2 gigabytes.
  12. B

    IIf Statement

    Here is the easiest way.... =IIf([PMtype]=in("3","4","5"),2,1) Note: If the data type of PMtype is not a text, then loose the quotes.
  13. B

    Politically Incorrect.

    The term African-American, while maybe not racist, is certainly prejudiced. There are many Jamaican-Americans that are referred to as African-Americans based on the color of their skin. These people have no ties to Africa whatsoever. It would be like saying all white people with blonde hair...
  14. B

    painfully slow export to excel file.

    I have the same problem in Access2002 with Service Pack 3. I have not found a solution, but I wanted you to know that your situation is not unique.
  15. B

    Recordset Not Updatable

    Here are 2 very common reasons for "not updatable" recordsets. 1. Missing primary keys: Make sure all of your tables have a primary key. Use an autonum if you must, but you are better of using a unique field or concatenated unique fields. 2. Grouping (Totals) queries: If you are using a...
Back
Top Bottom