473,795 Members | 2,875 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Populating fields in a pop-up form from a master form

2 New Member
Dear all,

(using access 2002 on windows 2k)

Apologies for such a simple question, I just can't seem to sort it out myself.

I have a form called frmProject Details, which includes nested subforms, call logs, contact details etc.

When a user clicks a button, the form frmProject Specific Call Log opens in data entry mode, where they can add details of new activities or calls to the call log (which can then be seen from the subform in frmProject Details).

Why OH WHY can't I get the frmProject Specific Call Log to automatically populate the Project name field with the project that frmProject Details was displaying? AAaagh!

I'm going to have a cup of tea. Thanks so much for the help this board has already provided.
Sep 6 '07 #1
3 1202
hariharanmca
1,977 Top Contributor
Dear all,

(using access 2002 on windows 2k)

Apologies for such a simple question, I just can't seem to sort it out myself.

I have a form called frmProject Details, which includes nested subforms, call logs, contact details etc.

When a user clicks a button, the form frmProject Specific Call Log opens in data entry mode, where they can add details of new activities or calls to the call log (which can then be seen from the subform in frmProject Details).

Why OH WHY can't I get the frmProject Specific Call Log to automatically populate the Project name field with the project that frmProject Details was displaying? AAaagh!

I'm going to have a cup of tea. Thanks so much for the help this board has already provided.

Just post the version of front-end and what you had tried (<Red Eye>Most important, Get back with that tea</Red Eye>).
Sep 6 '07 #2
pounana
2 New Member
Just post the version of front-end and what you had tried (<Red Eye>Most important, Get back with that tea</Red Eye>).

The tea must have done the job; so silly, I just put a hidden control on the pop up form with the default value =[Forms]![Project Details]![ID]

Works a treat, and the DB actually looks really nice now. All I have to do is delete about a thousand lines of code from buttons I have subsequently deleted...

So obvious.....Rea lly appreciate the offer of help, though

Don't underestimate the power of tea.
Sep 6 '07 #3
hariharanmca
1,977 Top Contributor
The tea must have done the job; so silly, I just put a hidden control on the pop up form with the default value =[Forms]![Project Details]![ID]

Works a treat, and the DB actually looks really nice now. All I have to do is delete about a thousand lines of code from buttons I have subsequently deleted...

So obvious.....Rea lly appreciate the offer of help, though

Don't underestimate the power of tea.
Okay just post what you had tried and
what will do that thousand lines of code and why you want to delete!. Just cleare me.
Sep 6 '07 #4

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

Similar topics

1
2287
by: David Shorthouse | last post by:
HI is it posible to auto populate an access database.? I have 1 table structured Index_ID. - Index & auto number First_Name - Char50 Surname - Char50 Initals - Char50 Postcode - Char50 Email_Address - Char50 Mailshots - tick box
0
1884
by: David P. Jessup | last post by:
Background info: I'm attempting to populate an array with specific column numbers from a database. I have another array(from a linked table) that has matching column names from the original database. CODE: LinkCount=0 ClmCount=0 for each ofield in rs.fields response.write "<th>" & ofield.name & "</th>"
1
1988
by: cloverme | last post by:
Hi, I need help populating a listbox from a database on a webform. I created a an access database with a table, fields and data. Then I created a WebForm in vb.net and added a DropDownList control to the page. Then I created a data connection to my table... I right clicked and told it to generate a dataset (which it created dataset1).
0
2881
by: elcc1958 | last post by:
I need to support a VB6 application that will be receiving disconnected ADODB.Recordset from out DotNet solution. Our dotnet solution deals with System.Data.DataTable. I need to populate a disconnected ADODB.Recordset from System.Data.DataTable data. Below is the source code I am implementing to test the process. I do not get any error, that I can see. The problem I have is that at the end, the recordset seems to be empty. Any...
1
1629
by: MrB | last post by:
I am quite new to vb.net. I have been using VBA for years, but an having problems with populating a listview. I have tried many things, including snippets of code from some news groups with no success. I have even purchased a couple of books on vb.net and still do not have it working. I would like to see some example code that will connect to an Access database and populate a listview box with an autonumber field and a couple of text...
3
5621
by: Sidney Linkers | last post by:
Hi, I'm trying to make a calculated text field in a query where the textvalue is being populated from multiple records. I already use a VBA function to loop through records and concatenate the text. It works but the performance is really bad. I'm looking for a solution in plane SQL, so the looping is done by joining tables. I can't get it to work....
1
2109
by: Svelte Poshy | last post by:
Populating a field in a table depending on another In my table customers i want to populate the field segmenid depending on the choice in the lookup field Typeid. Both fields, typeid and segmentid are placed in the table Customers. The field Typeid is a lookup field, looking in the table Type.
0
1159
by: Joe Kelb | last post by:
I have an Excel spreadsheet with two fields of data, part number and product code (hundreds of lines of data). The same fields of data are in a database, however the product code fields are empty. I need to somehow have Access look at the spreadsheet and if the part number in the spreadsheet matches the part number in Access, it will populate the Access product code field with the corresponding product code data that resides in the...
1
4929
by: Patrick | last post by:
Am upgrading an application from VB6 to VB.Net. One of the controls is a ListView that am failing to populate. Am including some of the code for some assistance where I may be going wrong. Private Sub ShowFielgs() Dim f As ListViewItem Dim i As Integer Dim Names as String Dim Arr6() As Object With tbStaffm Dim date1 As Date = Now
0
987
by: MR | last post by:
i am writing an application that automates the process of loading a web page, login into a site and then simulates the navigation of the site. the program uses a winform with a webBrowser control that is used to load the web page. i am able to successfully navigate the site but am having trouble entering data into the fields. the two fields are the username and password. i would like to automatically enter the username and password into...
0
9522
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10443
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10216
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10165
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10002
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7543
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6783
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2921
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.