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  

fields are not sychronized in form



 
 
Thread Tools Display Modes
  #1  
Old August 11th, 2005, 10:28 PM
JJ
external usenet poster
 
Posts: n/a
Default fields are not sychronized in form

I put a combo box in my form, so that i can click on names. The combo box is
based off of a query from a table. As I change the combo box (names), instead
of all the fields in the form updating to the new record, it is just changing
the current record's field name. I am unsure how to connect the other records
to that combo box? I also want to have another combo box so that i can narrow
my search even further, is this possible?
  #2  
Old August 12th, 2005, 12:25 AM
Ofer
external usenet poster
 
Posts: n/a
Default

The combo box should be unbound.
The recordsource should be filtered by the value of the combo

Select * From TableName Where NameField Like nz(Forms![ComboNameInForm],"*")

Or if you using two combo's
Select * From TableName Where NameField Like nz(Forms![ComboNameInForm],"*")
And NameField2 Like nz(Forms![Combo2NameInForm],"*")

On the after update event of the combo. write the code me.requery

"JJ" wrote:

I put a combo box in my form, so that i can click on names. The combo box is
based off of a query from a table. As I change the combo box (names), instead
of all the fields in the form updating to the new record, it is just changing
the current record's field name. I am unsure how to connect the other records
to that combo box? I also want to have another combo box so that i can narrow
my search even further, is this possible?

  #3  
Old September 29th, 2005, 09:16 PM
JJ
external usenet poster
 
Posts: n/a
Default

I know it has been awhile since this post. However I am running into the same
problem again. I have two unbound combo boxes that work appropriately. In the
recordsource of the form I have

Select * From [Table1] Where [Name] Like nz(Forms![Combo1],"*")
And [Name2] Like nz(Forms![Combo2],"*")

In combo2's after update procedure, I have me.requery

Everytime I change combo2, the form goes back to the first record in the
table and not the record chosen in combo2.....any suggestions?

"Ofer" wrote:

The combo box should be unbound.
The recordsource should be filtered by the value of the combo

Select * From TableName Where NameField Like nz(Forms![ComboNameInForm],"*")

Or if you using two combo's
Select * From TableName Where NameField Like nz(Forms![ComboNameInForm],"*")
And NameField2 Like nz(Forms![Combo2NameInForm],"*")

On the after update event of the combo. write the code me.requery

"JJ" wrote:

I put a combo box in my form, so that i can click on names. The combo box is
based off of a query from a table. As I change the combo box (names), instead
of all the fields in the form updating to the new record, it is just changing
the current record's field name. I am unsure how to connect the other records
to that combo box? I also want to have another combo box so that i can narrow
my search even further, is this possible?

  #4  
Old September 29th, 2005, 09:38 PM
Ofer
external usenet poster
 
Posts: n/a
Default

The path to the combo should be

Forms![Formname]![Combo1]
Forms![Formname]![Combo2]
--
I hope that helped
Good luck


"JJ" wrote:

I know it has been awhile since this post. However I am running into the same
problem again. I have two unbound combo boxes that work appropriately. In the
recordsource of the form I have

Select * From [Table1] Where [Name] Like nz(Forms![Combo1],"*")
And [Name2] Like nz(Forms![Combo2],"*")

In combo2's after update procedure, I have me.requery

Everytime I change combo2, the form goes back to the first record in the
table and not the record chosen in combo2.....any suggestions?

"Ofer" wrote:

The combo box should be unbound.
The recordsource should be filtered by the value of the combo

Select * From TableName Where NameField Like nz(Forms![ComboNameInForm],"*")

Or if you using two combo's
Select * From TableName Where NameField Like nz(Forms![ComboNameInForm],"*")
And NameField2 Like nz(Forms![Combo2NameInForm],"*")

On the after update event of the combo. write the code me.requery

"JJ" wrote:

I put a combo box in my form, so that i can click on names. The combo box is
based off of a query from a table. As I change the combo box (names), instead
of all the fields in the form updating to the new record, it is just changing
the current record's field name. I am unsure how to connect the other records
to that combo box? I also want to have another combo box so that i can narrow
my search even further, is this possible?

 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
strategy for data entry in multiple tables LAF Using Forms 18 April 25th, 2005 04:04 AM
Design help, please SillySally Using Forms 27 March 6th, 2005 04:11 AM
update fields in a form / subform ??? peter junker Running & Setting Up Queries 0 December 5th, 2004 11:15 AM
Dates in a listbox connected to a form... RusCat Using Forms 13 November 25th, 2004 02:31 AM
Strange stLinkCriteria behaviour on command button Anthony Dowd Using Forms 3 August 21st, 2004 03:01 AM


All times are GMT +1. The time now is 10:24 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.