Search results

  1. R

    Conditionally saving a record

    Hi AncientOne, No luck with your code. I can only write If and Then with a first capital leter, they get changed to capital automatically. I've tried all sorts of variations. This is what I ended up with: Private Sub close_Click() Dim stDocName As String Dim stLinkCriteria As...
  2. R

    Conditionally saving a record

    Hi, I'd like to get a msgbox when closing a form that gives me the option to either save or not save the record, but only if changes have been made to the record. I've got this so far but that doesn't work: If Me.Dirty Then MsgBox(StrMsg, vbQuestion + vbYesNo, "Save this Record") = vbYes...
  3. R

    Weird result with NewRecord. Please help

    Thanks for your responses Rakier and Pat. After many hours and mountains of frustration I still haven't been able to get it to work I decided to go back a little bit and follow another path to go where I want to go and that turned out to be a good decision. I've got it to work. Thanks for...
  4. R

    Weird result with NewRecord. Please help

    Thanks for your suggestion. I've given it a quick try. Unfortunately without the result I'm looking for, the acFormAdd code doesn't open a new record but links to existing ones with the wrong ID. I'll look into it again later and will post a more elaborate analysis. Wally
  5. R

    Weird result with NewRecord. Please help

    Posted this question a few days ago. Does nobody have a clue as to what it is I'm doing wrong here? thanks, Walt
  6. R

    Weird result with NewRecord. Please help

    Hi All, I have a problem with opening a secondary form from the main form. Tha main frm is called frmPatents and it’s based on a tabel. I need to open a secondary form (frmAllOfficialAction_Patents) by clicking a button (bAddOffAction). This secondary form is based on query...
  7. R

    Subform question: open record or new record

    No, tried that some time ago. It's got to be somthing simple that I'm just overlooking I think.
  8. R

    Subform question: open record or new record

    Well, so am I but that doesn't mean you cannot find solutions does it! I appreciate ALL serious input. It may not be the solution all the time but it does make you aware of other angles to look at the problem. Therefore, thanks for thinking with me. Perhaps it is the way you have the...
  9. R

    Subform question: open record or new record

    Thanks Numpty. It partially works now. When I click the button to go to the subform I now get a msgbox asking me for a parameter value. The value of the field that contains the link between the forms is displayed just above the empty field in the box. When I ignore the msgbox and click OK it...
  10. R

    Subform question: open record or new record

    Hi Mark, sorry it took me so long to reply. I've been away for a few days. Your suggestion doesn't work unfortunately. It makes sense it doesn't either as I want to open a new record for an Application and therefore there's no AppID to copy. The AppID is an autonumber. I'll have another think...
  11. R

    Subform question: open record or new record

    Hi all, I've got a form with a subform (table). Subform has a field ApplicationNum. By clicking on that field a subsequent form opens with application details (frmApplication). The linking field is AppID. Works fine, no problem. However, a problem occurs when there is no application detail form...
  12. R

    Open secondary form and copy keyfield

    Problem solved Thanks again for your appreciated advice. Mile, I did indeed have 2 line where there should be one. With the one line it still didn't work, frmSearches was opening itself instead of the frmNotes_short. Stupid mistake from my side. On open event for secondary form I now have...
  13. R

    Open secondary form and copy keyfield

    Thanks for helping Rich. Unfortunately I get an error message again: 'Compile error. Invalid use of property'. On the code screen that opens next, the first line of your code is higlighted in yellow and the last line is blue. Do you mind having another look? Thanks, Wally
  14. R

    Open secondary form and copy keyfield

    Hi, I've struggling wity this issue for some time now. What I have is a form with key field SearchID (autonumber) and a button that opens a secondary form with notes attached to the record on the first form. The 2 forms are linked by the SearchID number. This works without a problem when the...
  15. R

    Impossible to open database

    Happened to me too! After struggling for hours someone gave me the perfect tip to solve the problem with very little effort. I'm sure there are other and more sophisticated ways but I'd just reinstall Access and that takes care of your problem. Wally
  16. R

    Compile error for copying field value to other form

    My main form has several buttons that open a next form. The main form has an PubID field (autonumber), the form that opens also has a PublicationID field in a combobox or a field. What I'd like to happen is that upon opening the 'follower form' the PublicationID field values gets copied to the...
  17. R

    Print options for reports

    Must have had a mental black-out! The solution was right there but for some reason I failed to see the obvious. Thanks for setting me back on track Walter
  18. R

    Print options for reports

    Dear All, I'd like to go to the print set-up pop-up that you ussually go to when printing from applications when I click on the print button on my forms. At the moment I have no options at all, all pages of the report are printed directly upon click. Some reports are really too big for this...
  19. R

    Error Message

    Thanks Mile-O-Phile, The error message is gone and I'm able to go to a new record. Great! Now, about your other questions: >PublicationID on your form...what sort of control is this? >What value does it have? >Is the ID numerical? >Is the form open? >Does PublicationID have a value at...
  20. R

    Error Message

    Kevin, unfortunately your solution doesn't do the trick, I still get the same message. Mile-O-Phile, unfortunately I'm in no position to give you any arguments for the choice made here as I am an absolute beginner with this stuff with only a minimal understanding of the code so far ( but I'm...
Back
Top Bottom