Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

transfer value to subform new record

Posted on 2003-12-03
1
Medium Priority
?
299 Views
Last Modified: 2008-03-06
i've been wrestling with this one....
i have a listboxA on a mainform and a button next to it
i want on click to transfer the value from listboxA

to a NEW record on the Subform

how do i specify that it goes to a new record?

thanks for any help on this, J
0
Comment
Question by:jfgk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 5

Accepted Solution

by:
DarkMor earned 180 total points
ID: 9912104
jfgk,
Is the subform in FORM  or Datasheet/Continuous, also are there other fields on the subform that need data before the record can be saved, finally can the user cancel saving the record after clicking the button.

The reason I ask these are to better help understand the scenerio.

It is possible to docmd.gotorecord, , nacnewrec on the subform and then set the value by referencing the listbox value, however knowing the structure of the subform makes a big difference

D
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question