Advertisement

05.15.2008 at 12:17AM PDT, ID: 23404184
[x]
Attachment Details

If Combo box = Null open new form and link data. Problem with data linking

Asked by Miltiadis23 in Microsoft Access Database, Access Forms, Access Coding/Macros

Tags:

On my First Form I have Industry(Text) and IndustrySector(combobox) from tblIndustry
A Subform having SubSector(combobox) and Process(combobox) Linked with IndustryId (tblIndustry) and IndustryId (tblPollution) .
 IndustrySector(combobox),  SubSector(combobox) Process(combobox)  are Synchronized and the cboProcess may not contain values

The User inserts the name of the industry selects the corresponding sector of the industry, selects the corresponding subsector of the corresponding  Sector and the corresponding process of the subsector.

If no Proccess exists the user is prompted with a msgbox saying No process exists Please enter a new one Then another forms open in order to enter the Corresponding Region

The new form must be linked with the corresponding Sector SubSector and the user must enter the new process and select the corresponding unit for this process Here i am facing my link problem i cannot link this two forms don't no why

The code I have Is this in the after update of IndustrySector cbo
tblProcess2 is the child form that i want to link

I have Created a word  file having the schema and some photos of what i am explaining Sorry for the .doc
 
If you don't understand something feel free to ask product = Proccess(combobox)Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
Private Sub Category_AfterUpdate()
Product = Null
Product.Requery
Product = Me.Product.ItemData(0)
 
If Me.Product.ItemData(0) Then
MsgBox "Process Exist, Select One of the list"
Else
MsgBox "No process Exist,Please Enter a new one"
Process
End If
End Sub
Private Sub Process()
    DoCmd.OpenForm "tblProcess2", , , , acFormAdd
'/* Not Working  
'If Me.NewRecord Then
   '     Forms![tblprocess2].DataEntry = True
    'Else
     '   Forms![tblprocess2].Filter = "[CboSubSector] = " & Me.[Category]
      '  Forms![tblprocess2].FilterOn = True
    'End If
'*/
End Sub
Attachments:
 
Schema of the Database and Photos for the sake of explanation
 
[+][-]05.15.2008 at 01:12AM PDT, ID: 21571459

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 01:26AM PDT, ID: 21571519

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 01:32AM PDT, ID: 21571545

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 03:18AM PDT, ID: 21571999

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 03:41AM PDT, ID: 21572106

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 03:53AM PDT, ID: 21572179

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 02:01PM PDT, ID: 21577949

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 03:03PM PDT, ID: 21578337

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.16.2008 at 04:28AM PDT, ID: 21581787

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.16.2008 at 10:41AM PDT, ID: 21584826

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.16.2008 at 11:46AM PDT, ID: 21585363

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.16.2008 at 12:55PM PDT, ID: 21585903

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.16.2008 at 08:19PM PDT, ID: 21587862

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Access Database, Access Forms, Access Coding/Macros
Tags: vba Sql ms access
Sign Up Now!
Solution Provided By: Arthur_Wood
Participating Experts: 2
Solution Grade: B
 
 
[+][-]05.17.2008 at 05:22AM PDT, ID: 21588937

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.19.2008 at 12:22PM PDT, ID: 21600715

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628