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 Westi 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. OrionElectrotech

    Sort automatically on opening a form

    Such a simple solution! Thanks
  2. OrionElectrotech

    Sort automatically on opening a form

    Can anyone tell me how to set a form up so that it will sort automatically on opening? It is a simple form, based on a table with just a date field and a text field, and I would like it to sort on the date field. I have set the Order By property on the form, but that obviously doesn't apply...
  3. OrionElectrotech

    Query results need to be summarised (on a one to may relationship)

    I can't get PHV (10July) or SeeThru (15 July) answers to work unfortunately - again down to my lack of VBA knowledge I guess. Does anyone have any other ideas, or are you able to expand on them? Caroline
  4. OrionElectrotech

    Record Locks when running a DLookUp Macro??

    Just a thought - will this solve our problem of record locks??!! Or is that down to 2 users trying to add a record at the same time? I got so engrossed in getting the code right that I forgot the main reason for my initial question! Caroline
  5. OrionElectrotech

    Record Locks when running a DLookUp Macro??

    In answer to JBinQLD's question, it just shows the candidate name you are trying to enter, with an ok button below. PHV - works a treat! Was that just with the addition of the Else argument? Thanks to everyone for your help, as ever, Caroline
  6. OrionElectrotech

    Record Locks when running a DLookUp Macro??

    Well, JBinQLD's suggestion - that gets the same error message as before. PHV's suggestion - nothing happens, no error message on the code, but no message saying it's a duplicate name either. Caroline
  7. OrionElectrotech

    Record Locks when running a DLookUp Macro??

    Private Sub ca_Name_BeforeUpdate(Cancel As Integer) MsgBox (Me![ca_name]) If Nz(DLookup("[ca_name]", "[CANDIDATES]", "[CA_NAME] = '" & [me]![ca_name] & "'"), "") = "" Then 'no records matched this record so proceed Else 'a match was found - please enter a number after the candidate...
  8. OrionElectrotech

    Record Locks when running a DLookUp Macro??

    The whole line is highlighted. Yes, I put it all onto one line. Caroline
  9. OrionElectrotech

    Record Locks when running a DLookUp Macro??

    This brings up a run time error 2465 - Orion Database can't find the field '|' referred to in your expression. Caroline
  10. OrionElectrotech

    Record Locks when running a DLookUp Macro??

    Hi Aceman Have I copied your syntax correctly? DLookUp("[ca_name]","[CANDIDATES]","[CA_NAME] = '" & [Me]![CA_NAME] & "'") Is Not Null It keeps putting square brackets around [Me], and doesn't then recognise it. Yours (in need of training!), Caroline
  11. OrionElectrotech

    Record Locks when running a DLookUp Macro??

    Thanks for your suggestion. My database defualts to record level locking at the moment, but I still believe the problem is when people are adding new records at the same time - in the data entry form, the new record is not acknowledged in the underlying table until you come out of that record...
  12. OrionElectrotech

    Record Locks when running a DLookUp Macro??

    I have a data entry form where users add new Candidates and their information. The candidate name (ca_name) is the primary key in the underlying table (CANDIDATES), with no duplicates allowed, but duplications will not be checked for until they save the form. However I need it to check if it is...
  13. OrionElectrotech

    Query results need to be summarised (on a one to may relationship)

    I already have a form/subform that works like that (Candidate Info), and is fine, displaying data from the Candidates and Skills tables. This is a seperate query, based on the same tables, but showing a summarised list (continuous form) of suitable candidates and their skills. They can then go...
  14. OrionElectrotech

    Open 2 copies of the same form at once

    Thanks MajP, that worked perfectly! Caroline
  15. OrionElectrotech

    Query results need to be summarised (on a one to may relationship)

    Thank you - I shall try your suggestion and get back to you, Caroline
  16. OrionElectrotech

    Query results need to be summarised (on a one to may relationship)

    Yeah, thought about that, but we need a link to the full data from the results page, so sadly a report is no good. Thanks anyway. Caroline
  17. OrionElectrotech

    Query results need to be summarised (on a one to may relationship)

    Thanks PHV, Couldn't get this to work - kept getting a Compile Error Expected: Case. Something to do with SQL and VBA? Will keep trying, Caroline
  18. OrionElectrotech

    Open 2 copies of the same form at once

    Unfortunately it doesn't work. A new CANDIDATE INFORMATION form appears briefly (although not linked to the selected candidate, just goes to the first in the list) but then closes straight away. Caroline
  19. OrionElectrotech

    Open 2 copies of the same form at once

    Sorry, I wasn't very clear! I need the "go to" button to open a NEW copy of the Candidate Information form (therefore leaving any previously opened versions still open). It doesn't currently. Hope this is a bit clearer, Caroline
  20. OrionElectrotech

    Query results need to be summarised (on a one to may relationship)

    Thanks for your reply... I think. Felt more like I was being told off. (I do actually have 3 tables, and I thought each had a one-to-many relationship, however I'm probably wrong)

Part and Inventory Search

Back
Top