Search results

  1. F

    New Records on Dialog Box

    Oh, one more thing... I realized the VendorID is actually a text value, not a number... how would that code change? See attached revised database Thanks!
  2. F

    New Records on Dialog Box

    Excellent! that code looks very simple and it works! thanks so much
  3. F

    New Records on Dialog Box

    Good morning, see if you can see the attached Database. I simplified it for this purpose. Thanks for all your help!
  4. F

    New Records on Dialog Box

    Hello, When the second form is opened to enter the record of a new contact, the VendorID is not defaulted. I have to manually enter it. The contact form opens and all the contacts are properly filtered though to the corresponding VendorID. Thanks
  5. F

    New Records on Dialog Box

    Sure, sorry about not being clear: In the DB there are 2 Tables: 1) Vendors 2) Contacts Both of them have the field VendorID which links them (1 vendor will have many contacts within their organization - one to many relationship - see capture) Now on the main form for vendors, instead of...
  6. F

    New Records on Dialog Box

    No, it is not working, sorry
  7. F

    New Records on Dialog Box

    Yes, the VendorID already exists in the DataBase. We are adding contacts to that vendor which are linked to the vendor by the same VendorID field
  8. F

    New Records on Dialog Box

    Thanks... I go this far with some VBA (I found this one on the FormsDemo): Dialog window opens but it is not filtered at all with the correct Vendor Private Sub Command78_Click() Const FORMNAME = "Sub_CONTACTS" Const MESSAGETEXT = "No record." Dim strCriteria As String...
  9. F

    New Records on Dialog Box

    Hello, I created a form with vendors which has a button and opens up another form in "dialog ratesheet" format with that vendor's contacts. The button worked well in that it filters the form with the appropiate VendorID but when I need to enter a new contact, I have to manually enter the...
  10. F

    Cannot get a DLookUp to work

    I still cannot get the delimeter right. WOuld it be something like this? Private Sub ServiceNameID_AfterUpdate() Me![Price] = DLookup("Price", "Services", "[ServiceNameID] = 'Me![ServiceNameID]'") End Sub
  11. F

    Cannot get a DLookUp to work

    Thanks, Paul, yes I see your point... basically I do not need to populate all the other fields on to the "OrderDetails"
  12. F

    Cannot get a DLookUp to work

    Hi Paul, It is Short Text.
  13. F

    Cannot get a DLookUp to work

    The objective is to populate the "OrderDetails" form / table with data from the "Services" & "Items" table. I am able get data from the "Items" table with the below event: Private Sub ItemID_AfterUpdate() Me![Brand] = DLookup("Brand", "Items", "[ItemID] = " & Nz(Me.ItemID, 0)) End Sub I can...
  14. F

    DLookUp on Update Query

    Excellent! thank you so much
  15. F

    DLookUp on Update Query

    Thank you! One thing I don't understand... you do not need to do the DlookUp and this Union query on the same QUery right?
  16. F

    DLookUp on Update Query

    Thank you all for your responses. How would I go about a Union SQL? I am not familiar unfortunately with this language. Thanks in advance,
  17. F

    DLookUp on Update Query

    Dear all, Trying to use a DLookUp formula in an update query to clean up a code There are 2 tables with the following: MainTable which Contains the fields: MainDirtyCode and MainCleanedCode CodeCleanUp which Contains the fields: DirtyCode and CleanedCode Update Query to modify...
  18. F

    Why subform defaults to start new record??

    yes, I think you got it Pat. It is an event I have that updates the date in the field based on a subform of the actions. The BeforeInsert even does not work for me because I need this macro to update after I change something on the subform of actions. I am looking to see which one could help me.
  19. F

    Why subform defaults to start new record??

    Hello, I deleted that filted as I don need it and it still does it. Sorry, how do I check that regarding the master/child links? thanks
  20. F

    Why subform defaults to start new record??

    Hi, thanks for the quick response, yes there are existing records to display. The Date Entry proerty is set to "No" The record source is another table called "ACTIONS" See print-screen Thanks again
Back
Top Bottom