Search results

  1. J

    Travel Agency Database - advice and help appreciated!

    Edd - It is still early here (8:30pm) but it must be 4:30am for you... Time for you to get some 'kips'! Access is not conquered in a night! Jack
  2. J

    Travel Agency Database - advice and help appreciated!

    It is getting late for both of us, you in particular, so let me say this about the tick boxes in the Customer form; what do you do if they want to add trips to Hong Kong, Sinapore, San Francisco and London? I will be around tomorrow so if you have questions just let us know... Jack
  3. J

    Travel Agency Database - advice and help appreciated!

    I was not quite sure what you were up to so that was my shot at trying to make the db a bit more normalized. Your new setup should work as the tblTtripDetails is a many to many relationship and is necessary since One customer can go on Many trips and One trip can apply to Many customers. As...
  4. J

    Travel Agency Database - advice and help appreciated!

    First thing you need to do is normalize your tables. Delete all the tick boxes from the Customer table. Make a new table similar to this: tblCustomerTrips CustomerTripsID (PK and autnumber) CustomerID (FK) DestinationID (FK) TripID (FK) (from your table tblTripDetail) ...other data that you...
  5. J

    Update where number is largest?

    Try this: UPDATE MyTable SET MyTable.WoNum = varMyVariable WHERE MyTable.Unit=MyUnitVariable AND MyTable.UnitCount=DMax("[WoNum]","MyTable"); hth, Jack
  6. J

    End of record set error messages

    Bob and Jim - I'm glad that both of you got your respective problems handled! Jack
  7. J

    pop control in subform from main form

    I don't quite understand your question about percentages and how the Yes/No/Null figures in, but take a look at a Totals query as Avg is one of the answers that are possible... Good luck with your project... Jack
  8. J

    pop control in subform from main form

    This syntax will refer to a control on your main form from a subform: [Forms]![MainFormName]![ControlName] This will work too: [Parent].[ControlName] To add together a value in a control on the main form and a value in a control on a subform use code like this as the Control Source for an...
  9. J

    retaining values

    You are welcome... Jack
  10. J

    custom delete message

    This should do the trick: Dim StdResponse As Integer StdResponse = MsgBox("You are deleting Record No " & Me.RecordID & " Are you sure", 0 + 4 + 256, "") If StdResponse = vbYes Then ...delete code here... Else '(Default) ... do nothing... End If Change RecordID for the name of your control...
  11. J

    retaining values

    Your hidden control "AutoFillNewRecordFields" has a problem with a couple of extra characters at the end of the name. If you open the property sheet for the control you will see that it says, "AutoFillNewRecordFields" in the blue line at the top of the property sheet and the word 'Fields' is...
  12. J

    pop control in subform from main form

    This article will show you how to refer to controls on a subform from a main form and vice versa.... hth, Jack
  13. J

    Form Query

    If your query (your SQL structure) is returning data then that should be OK. As for "DoCmd.OpenQuery" that is the code to run a query. You can send the db but there is no guarantee that I can solve your problem, but I will take a look. Be sure and give the pertinent details so I will understand...
  14. J

    End of record set error messages

    You are welcome. Continued success with your project. Jack
  15. J

    End of record set error messages

    This code in the On Current event of the form will hide the Next or Previous button when you reach the end of the recordset. Dim recClone As DAO.Recordset Set recClone = Me.RecordsetClone If Me.NewRecord Then Me.cmdNext.Enabled = False Me.cmdBack.Enabled = False Else recClone.Bookmark =...
  16. J

    Form Query

    Where you can have no criteria or multiple criteria for a query I would suggest you take a look at the method of doing this that you will find here. hth, Jack
  17. J

    Automatic Entry in a memo Field

    YEEHAA! I am glad that it did the trick for you... And I am glad you are past worrying! Always nice to hear from you and I hope this finds you well and getting rich! Jack
  18. J

    Automatic Entry in a memo Field

    Hiya Marion! Give vbCrLf a shot... Jack
  19. J

    Match all records in 2 fields

    I will assume that there is only ONE E_Skill and ONE Candidate_Skill record for each skill. I will also assume that if a candidate has 5 skills then there are 5 separate records, one for each skill. If all of that is true then how do you enter the data to search for 2 possible skills? Does the...
  20. J

    Clipboard Question

    Just refer to the control you are interested in. I.e. Call ClipboardCode(Me.[MyControl]). hth, Jack
Back
Top Bottom