Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

Change combo box rowsource on add record

Discussion in 'Information Technology' started by Klingon Coder, Jul 28, 2006.

  1. Klingon Coder

    Klingon Coder
    Expand Collapse

    Hi, I'm hoping someone can help me out on this problem.

    I have two tables, one that stores information about RFPs that a company has
    received. In this table there is a field to indicate if the company has
    decided to place a bid on the RFP. The second table stores information about
    any proposals that the company has submitted. Both tables are related by the
    requisition number from the RFP table. I have a form that is used to display
    the information on the proposals (the record source is a query named
    qryProposal). On this form I have a combo box (cboReqNum) which displays
    only those records that have been assigned a proposal number (the primary key
    for the proposal table). I have a second query (qryProposalNoBid) which
    displays a list of RFPs that the company has bid on, but haven't yet been
    assigned a proposal number (in effect potential records).

    What I am trying to accomplish is to have the form use the qryProposal as
    its record source except when a new record is added, in which case I want it
    to use qryProposalNoBid, so that when the user clicks on the combo box they
    are given a list of available Requisition numbers, instead of the completed
    ones. Once the record has been added I want to revert back to the

    My problem is that I can't seem to figure out which event to use or the
    syntax required to accomplish this. Any help in this matter would be greatly


    Klingon Coder

    "Ancient Klingon Proverb - Act and you shall have dinner, Think and you
    shall be dinner"
  2. Loading...

Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     

Share This Page