A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Pop up form - field not updated



 
 
Thread Tools Display Modes
  #1  
Old July 27th, 2009, 01:35 AM posted to microsoft.public.access.forms
Abay
external usenet poster
 
Posts: 112
Default Pop up form - field not updated

Hello ... I have a Pop Up form imitated by a command button from a Supplier
form and a Supplier contacts sub form. The command button is on the sub
form. The Pop Up form should allow the addition of records to a "Supplier
Products" table adding records containing "Supplier index" (from the
Supplier form which remains open) and an entry from a products table (a
combo box).

I am having a problem getting the Supplier Index on the Supplier Product
table. I set the source property of this filed to:

=[Forms]![Supplier]![Supplier Index]

The field is correctly displayed on the screen, but the value does not
populate the Supplier Products table, the combo box entry works fine.

Any help would be most appreciated.

Abay



  #2  
Old July 27th, 2009, 02:38 AM posted to microsoft.public.access.forms
Arvin Meyer [MVP][_2_]
external usenet poster
 
Posts: 2,310
Default Pop up form - field not updated

The controlsource must be set to the field in the table. Then set the
DefaultValue property for a new record to:

=[Forms]![Supplier]![Supplier Index]
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


"Abay" wrote in message
...
Hello ... I have a Pop Up form imitated by a command button from a
Supplier form and a Supplier contacts sub form. The command button is on
the sub form. The Pop Up form should allow the addition of records to a
"Supplier Products" table adding records containing "Supplier index" (from
the Supplier form which remains open) and an entry from a products table
(a combo box).

I am having a problem getting the Supplier Index on the Supplier Product
table. I set the source property of this filed to:

=[Forms]![Supplier]![Supplier Index]

The field is correctly displayed on the screen, but the value does not
populate the Supplier Products table, the combo box entry works fine.

Any help would be most appreciated.

Abay





  #3  
Old July 27th, 2009, 02:52 AM posted to microsoft.public.access.forms
Abay
external usenet poster
 
Posts: 112
Default Pop up form - field not updated

Hello again .. I figured it out .. set the default value of the field in the
form to: =[Forms]![Supplier]![Supplier Index], don't know if this is the
best way, but it works ..

Abay

"Abay" wrote in message
...
Hello ... I have a Pop Up form imitated by a command button from a
Supplier form and a Supplier contacts sub form. The command button is on
the sub form. The Pop Up form should allow the addition of records to a
"Supplier Products" table adding records containing "Supplier index" (from
the Supplier form which remains open) and an entry from a products table
(a combo box).

I am having a problem getting the Supplier Index on the Supplier Product
table. I set the source property of this filed to:

=[Forms]![Supplier]![Supplier Index]

The field is correctly displayed on the screen, but the value does not
populate the Supplier Products table, the combo box entry works fine.

Any help would be most appreciated.

Abay





 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:27 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.