Search results

  1. pdx_man

    Permission on View

    Don't mean to be short, but I answered this question for you a month ago ... http://www.access-programmers.co.uk/forums/showthread.php?t=126317&highlight=view
  2. pdx_man

    Null field

    Pull your field up into your string: For Each varItem In Me.lstSupplier.ItemsSelected strSupplier = strSupplier & ",'" & Me.lstSupplier.ItemData(varItem) _ & "'" Next varItem If Len(strSupplier) = 0 Then strSupplier = "" Else strSupplier = Right(strSupplier, Len(strSupplier) - 1) strSupplier =...
  3. pdx_man

    Timimg a Query

    You can use VBA. Public Sub TimeIt() Dim StartTime, EndTime As Date StartTime = Now() DoCmd.OpenQuery "Qry_APR_Post" EndTime = Now() MsgBox "Seconds to run query:" & DateDiff("S", StartTime, EndTime) End Sub
  4. pdx_man

    CTRL+BREAK isn't working

    Did you convert the database to A2007? Make a copy and try this. You won't be able to go into debug mode of a previous version.
  5. pdx_man

    the "Tilda"

    What are you viewing this in? Query Analyzer? VBA Editor? I am not familar with the curly brackets in either of them, so ...
  6. pdx_man

    selecting the last 3 orders made

    Is the order date a DATETIME field or SMALLDATETIME? Do you have the time of the order, too? I will assume you have. You don't need a loop. It would look something like this: SELECT mo.* FROM MyOrders mo INNER JOIN (Select TOP 3 mo2.CustID, mo2.OrdDate FROM MyOrders mo2 WHERE mo2.CustID =...
  7. pdx_man

    Not Exist Join

    Well, it depends on what you need in TableB. Are you looking for it to have unique instances of ProductID? Can there be the same ProductID with unique Period? Check out the DISTINCT keyword: INSERT INTO TableB (ProductId, OtherField1, OtherField2 ...) SELECT DISTINCT ta.ProductId...
  8. pdx_man

    Not Exist Join

    Don't know about Not Exists Join, but ... INSERT INTO TableB (ProductId, OtherField1, OtherField2 ...) SELECT ta.ProductId, ta.OtherField1, ta.OtherField2 ... FROM TableA ta LEFT JOIN TableB tb ON ta.ProductId = tb.ProductId WHERE tb.ProductId IS NULL
  9. pdx_man

    SQL Server HostName

    Nellie is correct. Look at your connection string.
  10. pdx_man

    Linked Server

    You cannot edit/insert data in a view. It is just that, a view of the data.
  11. pdx_man

    SQL functions to access

    You can do this a couple ways depending on the type of Functions you have. A Table Function call is different than Scalar Function call. The most scalable would probably be to write a wrapper SP to handle the different types, and update the parameters. Here is the VBA that I use to...
  12. pdx_man

    Link table problem

    Add a field of datatype Timestamp. Don't worry about having to populate it. Do a Google search to find out why. Also, change the name of the field Select. That is a reserved word.
  13. pdx_man

    Dependencies of an object

    Here is a quick hint. If you don't know what to do from here, let me know. Gotta run. select object_name(id),id, object_name(depid),depid from sysdepends
  14. pdx_man

    SQL Server 2005 Login

    cn.connectionString = strQuery You need to set the ConectionString property.
  15. pdx_man

    Access linked SQL Server ADO error

    Your recordset is not updateable. What is the source?
  16. pdx_man

    SQL Server 2005 Login

    Let me throw my .02 in here, if I may. It prompts me that "Login failed for user 'MyUser'. The user is not associated with trusted SQL Server connection." As Hell pointed out, you are still using NT Authnetication. Look at you connection string. Anywhere in the do you see a: Trusted...
  17. pdx_man

    Change Column to Identilty OFF, but Coilumn Name is now known

    The name of the column will not be known at runtime? Please expand.
  18. pdx_man

    Is it possible by sql query?

    I am assuming that not fields would need to be monitored for updates. ie table has 20 fileds and only 3 of them would be monitored for updates. The process should only update if a monitored field is updated. If you have them stored in a separate table you do run the risk of having the table...
  19. pdx_man

    Is it possible by sql query?

    I don't know if I would do an additional table, but rather have a field in the same table that was incremented using a Trigger. If you had to capture different counts for different fields, you could use a field for each, but if it were for several, I would use one field and use a psuedo...
  20. pdx_man

    Emails in Stored Procedures With Paramaters and Spam Query

    Well, not my area of expertise, but from what I understand, anything you post on your page can be read by crawlers that go through pages and extract anything that resembles an email address. Having this come from a SP and using a gridview control offers no protection. That is why you see a lot...
Back
Top Bottom