|
-
Sep 29th, 2004, 09:57 AM
#1
Thread Starter
Lively Member
help with an access form plz
I am trying to customize a program my employer bought a few years ago that runs in Access 97. I attached a picture to try to clarify what I am trying to do.
I have a form with an Invoice Number(red box in picture), and a repeating sub form for Invoice Line Items(blue box). When something is entered into the Invoice Number box, I want to query our company's database and throw all of the line items in with code. Can anyone help me do this??
I am getting the first one(greenbox in pic) filled with the code below, but I don't know how to move to the second row. A blank entry is created as soon as I put text in the first one, but how do I put text in or even reference the new blank one?
Code:
Me![zInvoiceLineitems].Form![Description] = "test1"
Thanks for any help.
-
Oct 5th, 2004, 05:25 PM
#2
Your subform "Invoice Line Items" should have a recordsource set
for it and "Source Object" to the parent form "Invoice Number".
Also, the relationship should be set using the "Link Child Fields"
and "Link Master Fields". This will pull in data for a particular
invoice number determined by your subform recordset and filter
based upon the link relationship.
Check it out in design mode, but dont "view in new window" for
the subform, that will give you viewing of subform issues.
HTH
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|