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 strongm 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. RobertT687

    Linked server returned data that does not match length...

    One thought if you are trying to import from SQL to Access... NVARCHARs actual length is twice that of VARCHAR. Try changing the size of the column on the Access end to 40.
  2. RobertT687

    Access Client Side Very Large

    Try to Decompile the mdb. Start --> Run "C:\Program Files\Microsoft Office\OfficeNN\MSACCESS.EXE" "x:\MyMDB.mdb" /decompile Substitute your folder for OfficeNN (ie Office11, Office12)
  3. RobertT687

    Problem with code to display images from a folder in a form.

    Insert a space after the keyword CALL As Private Sub Form_AfterUpdate() Call DisplayImage End Sub
  4. RobertT687

    Backup file huge compared to data files

    Is the nightly backup being appended to the backup file? The backup command needs the /INIT parameter to start a new file.
  5. RobertT687

    Calculating age from d/o/b to d/o/d or the present date

    Not sure why you are getting the error. I just tested it in a quick form and it works as expected. Two questions: 1 - What is the data type of the column [DOB]. If it isn't type DateTime, you may need to convert it to DateTime before passing it to the function; although I would expect to see...
  6. RobertT687

    Calculating age from d/o/b to d/o/d or the present date

    You aren't passing in the non-optional date_of_birth value. You control should have a value of =basDOB2AgeExt([MyDOBColumn]) where [MyDOBColumn] is a table column containing a date_of_birth.
  7. RobertT687

    Undo_retention value

    Try running this query: select max(maxquerylen) seconds from v$undostat; Then set the value of undo_retention to something higher than the returned value.
  8. RobertT687

    SQL Query trigger question

    Your trigger isn't written to handle multi-row updates. Post the trigger code here so the forum members can see it and make suggestions.
  9. RobertT687

    Can't find year expression

    Check to see if you have any missing references.
  10. RobertT687

    Delete SQL table contents via VBA

    The syntax should be something like: CurrentDb.Execute("YourDeleteQueryStatement",dbSeeChanges) You need to have a primary key defined for the table (probably your Identity column) in order to delete from Access.
  11. RobertT687

    VBA Generated Excel File Crash?

    I don't remember the specifics, but I had a similar problem some time ago. It had to do with Access creating an invalid name for a worksheet. What does the name on the tab look like? Is there anything in the event log related to the error?
  12. RobertT687

    Read Only Error Message

    Take a look at the TransferSpreadsheet function if you are trying to create a spreadsheet directly from Access.
  13. RobertT687

    INSERT INTO using a variable / syntax error

    You don't need the .Value property. Just use "INSERT INTO tblTestTable (TestTextData) VALUES ('" & TestThingy & "')" Also, you should give the variable TestThingy a data type like Dim TestThingy As String rather than let it default to a Variant type.
  14. RobertT687

    Comments in a Stored Procedure

    I'd like to add a question along these same lines. What action short of recompiling the procedure should be taken to make sure procedures are using more current execution plans? Is updating statistics sufficient? Thanks in advance.
  15. RobertT687

    Can a Stored Proc return the number of records affected?

    Yes. You can try something like this: CREATE PROCEDURE usp_Do_Something(@StartDate DATETIME, @RecsEffected INTEGER OUTPUT) AS SET @RecsEffected = 0 If @StartDate... UPDATE Table1... SET @RecsEffected = @RecsEffected + @@RowCount INSERT Table2... SET @RecsEffected = @RecsEffected...
  16. RobertT687

    SQL Distinct records

    Try: Select ActionType, Count(ActionType) As OnHand FROM TableA Group By ActionType, Order By ActionType
  17. RobertT687

    Max length of a varchar field

    The column will be 8000 bytes. Is the column defined as varchar(8000) or Nvarchar(8000)? If the column is Nvarchar it is Unicode and reserves 2 bytes of storage for each character. If it is varchar, it reserves one byte of storage per character. Is it possible the limitation is a result of...
  18. RobertT687

    As a dba, what do I need to know about SOX?

    My $0.02. My understanding is that provisions of SOX only apply to publicly traded companies. If the OP's Not-For-Profit is not a public company he/she shouldn't need to worry about SOX. My experience with the process is that the important point is being able to show that your company has a...
  19. RobertT687

    Couple suspicious *.dll's and *.sys's... Startup takes a LONG time

    My $0.02. Try turning off System Restore. Then delete the offending entries. Turn System Restore back on after you are sure they aren't returning.

Part and Inventory Search

Back
Top