Search results

  1. pdx_man

    Do I really need Tables with SQL Backend

    If you have no forms, then there would be no reason to "require" linked tables.
  2. pdx_man

    How do I run script on sql server from Access

    You must use a pass-through query to run TSQL statements directly on SQL Server.
  3. pdx_man

    SQL Select query output to Access or Excel?

    Put a Breakpoint on the Docmd line. Go into the <b>Immediate</b> window <i> Ctrl G </i> and type in: ? strSQL Hit enter. That will return what is in the variable. Copy this to a query. Query Window <New> <OK> <Close> <First button on toolbar SQL> <Paste> <!> Debug that and correct your VBA...
  4. pdx_man

    Capture network logon name

    Have you tried Ye Ole: Environ("Username") ??
  5. pdx_man

    Round function

    Use this. Then it will work for any precision: Function CRound(MyVal As Double, Prec As Integer) As Double CRound = Int(MyVal * 10 ^ Prec + 0.5) / 10 ^ Prec End Function
  6. pdx_man

    Changing no results to zero

    I don't believe that would work if there were no results return from the nested select. It won't return a null value ... just no rows at all.
  7. pdx_man

    Changing no results to zero

    You'll have to check if there are any results first. Something like this: IF EXISTS(Select YourValue From YourTable) Select YourValue From YourTable ELSE SELECT 0
  8. pdx_man

    Convert Seconds into HH:MM:SS

    Sure thing. It is always nice to see that our efforts are appreciated.
  9. pdx_man

    Dates from MSAccess in SQLReporting?????

    OK, let's line things out here ... You are running SQL 2005 Reporting Services You have a MS Access database as the data source where the data is stored locally in the Access database. My guess is that you are trying to reference a query in that Access database which uses an Access function...
  10. pdx_man

    Dates from MSAccess in SQLReporting?????

    I'm guessing you are looking for the DateName function. SELECT DATENAME(MONTH, [Date Entered]) AS Month_Name
  11. pdx_man

    Simple T-SQL problem adding a 0 with a field

    This is not a simple T-SQL problem, but rather a formatting issue. In Access, a quick fix would be: Format("01/2/1998","mm/dd/yyyy") A T-SQL fix would involve using the CONVERT function. Refer to BOL.
  12. pdx_man

    Dates from MSAccess in SQLReporting?????

    Well, I'm guessing you are doing this query in Access ... so there is no MONTHNAME function ... try: Format([Date Entered], "MMMM") If you are looking to do this in SQL, you will have to do a CASE statement for the month: CASE MONTH([Date Entered]) WHEN 1 THEN "January" WHEN 2 THEN "February" : :
  13. pdx_man

    How on earth do I do this?????

    If you don't have a scheduled Windows task, then how can you ensure the database is open and working on the first day of the month? Basically you need to ensure a form is open and have the timer event set to check if Day(Date()) = 1
  14. pdx_man

    Remove Leading characters

    Hey Wideawake ... are you asleep? Did this solve your issue?
  15. pdx_man

    Remove Leading characters

    Try MID(YourField,5)
  16. pdx_man

    Linked Tables - looking for tool

    I know of no tool, but the way I have done this is to rename the table in the master DB and see what breaks. Maybe not the best solution, but I am able to get the rats to leave the ship. BTW, in the databases where the linked tables are, instead of using the Linked Table Manager, open up the...
  17. pdx_man

    Looping code based on values in query

    When the asterisk is selected, then you need to populate a recordset containing the values in the combox box (minus the *). Then use a Do loop. Psuedo code: If ComboBoxValue= "*" Then SET rst = openRecordset("Your ComboBox Query") Do While NOT rst.EOF Call DoTheExport(rst!Dept) rst.movenext...
  18. pdx_man

    Delete check box in excel 2007

    You must go into the design view. Click on the protractor thingy in the toolbar for the forms. Select the checkbox and hit delete.
  19. pdx_man

    Invoices Filter in Northwind sample and Replication ID type

    As David's article points out, there are issues with using the GUID, especially for it's un-intended purpose. I would really think about my last suggestion. Especially if this is going to be used for any period of time.
  20. pdx_man

    New novice trying someting Help!!

    Check out the OFFSET function
Top Bottom