473,396 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

In need of a field population to activate a Subform

Ok, I am working on an Access DB (2002) that needs to show a Subform when a field is populated with a number. In this case when VendorNumber is populated and it does not match the criteria of [Preconversion] and [Letter] and [VatCompliant] =true, then I want the subform to open up with the information. The link between the form and the VendorNumber is VENID.

I have tried to use a bunch of queries but it has not given me any joy. So I figure VB will have to be the way to go.
May 25 '08 #1
4 857
lotus18
866 512MB
Can you show us what have you done so far?

Rey Sean
May 25 '08 #2
OK So far I have done the following:

IIf([VATCompliance_tbl]![PreConversion] Or [VATCompliance_tbl]![Letter] Or [VATCompliance_tbl]![VATCompliant] = YES), “”, check INVID and 1st letter sent.

Iif ( [VATCompliance_tbl]![PreConversion] and [VATCompliance_tbl]![Letter] and [VATCompliance_tbl]![VATCompliant] = False ),


Expr1: IIf(([VATCompliance_tbl]![PreConversion] And [VATCompliance_tbl]![Letter] And [VATCompliance_tbl]![VATCompliant]=False),[Forms]![VATCompliance_frm].[OnQuery],Null)

EXPR3: IIf([VATCompliance_tbl]![VATCompliant] And [VATCompliance_tbl]![PreConversion] And [VATCompliance_tbl]![Letter]="",[InvoiceTrackingW/Sum_qry]![INVID],[InvoiceTracking_tbl]![VendorNumber])

EXPR4: IIf([Test VATOutstanding Query]![PreConversion] Or [Test VATOutstanding Query]![Letter] Or [Test VATOutstanding Query]![VATCompliant]=True,"",[Test VATOutstanding Query]![INVID])

EXPR5: IIf([VATCompliance_tbl]![VATCompliant] Or [VATCompliance_tbl]![PreConversion] Or [VATCompliance_tbl]![Letter]=True,"",[InvoiceTrackingW/Sum_qry]![INVID])

INVID: (SELECT [INVID] FROM [InvoiceTrackingW/Sum_qry] WHERE [VATCompliance_tbl]![VATCompliant] And [VATCompliance_tbl]![PreConversion] And [VATCompliance_tbl]![Letter]="")
May 25 '08 #3
I have had this going around in my head for days now. Trying to get the correct way to do this. I tried to cut and paste my DB in here but it would not. Not sure how to show you guys everything.
This is all new to me.
May 25 '08 #4
Here goes the explanation, When the VendorNumber is populated and the statement [preconversion] and [letter] and [vatcompliant] = False I would like the subform to populate with only the information that is in my query VATOutstanding. For that to happen I would need the to use INVID to link the tables / querys VATOutstanding_qry, InvoiceTrackingW/Sum_qry. The problem is right now I do not have the VATOutstanding_qry working right now as the final table VATOutstanding_tbl doesn’t have anything in it.

I wanted to run a series of queries,
If [preconversion] and [letter] and [vatcompliant] = False then enter INVID

If INVID matches in VATOutstanding_tbl populate form

If VATOutstanding_tbl is populated then match with INVID and VendorNumber in InvoiceTracking_qry

If all of the above happens then populate the subform so we can check what other invoices are out there that are not VAT Compliant.

If we get an invoice that matches the criteria in the subform we can check that we matched it with a check box so that this line will not come up again when the vendornumber is populated next.

Does any of this make any sense?
May 25 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Jeremiah J. Burton | last post by:
I am trying to create a database (in Acces 2000) to track my fossil collection. I have a main table that has records for every specemen. I have a secondary table with information on localities...
9
by: William Wisnieski | last post by:
Hello Everyone, Access 2000 I have a main form with a continuous subform. On the main form I have a text field called . It gets populated based on what the user selects in a field on the...
3
by: Earthling | last post by:
Any help would be appreciated to solve the following simple problem that I will describe. *** There is a form called "red chocolate form". The form has a particular subform field that has a...
2
by: Michelle | last post by:
Hi all I have used knowledge base article 112747 to improve my subforms performance. I am using Access 97. I have a main form where i put an extra textbox which concatenated TeamID WeekNum...
25
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the...
5
by: lottaviano | last post by:
I am using Access 2002 and have two tables (Main and Actions) linked (in Relationships) on one field "CAL_ID" (primary key in Main Table). Main Table is a list of equipment. Actions Table lists...
1
by: John Phelan-Cummings | last post by:
I'm not certain if this made the post. Sorry if it's a repeat: Using a Button to take an autonumber from one form to populate another autonumber field on another form. I have a Mainform "A"...
9
by: Ecohouse | last post by:
I have a main form with two subforms. The first subform has the child link to the main form identity key. subform1 - Master Field: SK Child Field: TrainingMasterSK The second subform has a...
5
by: blakerrr | last post by:
Hi everyone, I have a form called Master Order with a subform in it called Order Info. The subform has a nested subform in it called Order Details. Master Order cycles through all of the parts...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.