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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by inuman

  1. inuman

    Access Runtime 2007 - Disable macro security

    Anyone knows a way to disable macro security from VBA code for Access Runtime 2007? Thank you
  2. inuman

    Select Distinct Records

    Hi there! I have a database containing records like these: ID Name Qty Price 1 Prod1 5 15 2 Prod2 10 10 3 Prod1 10 15 4 Prod1 5 10 I have to make a query to obtain the following result: Name Qty Price Prod1 15 15 Prod1 5 10 Prod2 10 10 (Cumulate the...
  3. inuman

    How to set PrimaryKey for a Linked Table from VB

    spoke too soon... now I have the correct result but I can't make an updateable query with stoc and tbl...
  4. inuman

    How to set PrimaryKey for a Linked Table from VB

    Thanks a lot PHV, it works great. What is the role of "WHERE stoc.cod Is Null" ?
  5. inuman

    How to set PrimaryKey for a Linked Table from VB

    tbl changes it's contents, so I want to run the update everytime I the form is loaded without deleting the current records in table stoc.
  6. inuman

    How to set PrimaryKey for a Linked Table from VB

    Thanks for the advice, it worked. Anyway, I was looking for a way to link a table without alter it's structure on the server. I want to update a local table with the records from a linked table, without modifying the linked table. But when I try to run an UPDATE RIGHT JOIN query, it says that...
  7. inuman

    How to set PrimaryKey for a Linked Table from VB

    Hi, I've searched for 3 days on the internet for an answer to this problem. I have a access frontend with a linked table to a mysqltable. I have to create the linked table through vb code. But the linked table does not have a primary key, so I can't update it, right? How to set a primary key...
  8. inuman

    Record counter for a form in Datasheet View

    Nope, just a subform which change it's content linked to the main's form field
  9. inuman

    Record counter for a form in Datasheet View

    How does it work for you? Have you put the Function in the subform's module?
  10. inuman

    Record counter for a form in Datasheet View

    No, a global module.
  11. inuman

    Record counter for a form in Datasheet View

    I use a module: Public gvarCountRec As Integer Function Counter() As Integer gvarCountRec = gvarCountRec + 1 Counter = gvarCountRec End Function And an unbound textbox on the subform with value: =Counter() In the main form's On Current event: gvarCountRec=0
  12. inuman

    Record counter for a form in Datasheet View

    I tried with Continous form but it gives the same error: First time I open the form it shows 1,2,3,4 (correct counter), but when I change to another record in the main form, the subform shows 1,1,2,3 (wrong counter). I don't know why the counter works like this...
  13. inuman

    Record counter for a form in Datasheet View

    I didn't think about this variant :P I think this will do the trick. I'll write again to tell you if it works. Thanks a lot!
  14. inuman

    Record counter for a form in Datasheet View

    Thanks for your reply, but I want it to be updatable. Is there a way to do this?
  15. inuman

    Record counter for a form in Datasheet View

    Hello! I have a form and a subform in Datasheet View which displays a list of records. I want to put a field in the subform which counts the position of the records, which should start from 1, every time the main form changes from one record to another. Subform should lokk like this: NR Name...

Part and Inventory Search

Back
Top