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  

Combo Box



 
 
Thread Tools Display Modes
  #11  
Old May 18th, 2006, 04:32 PM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default Combo Box

Well maybe I am confused. You're inserting records into a table called
tblQOE_New but the rowsource of your combobox doesn't look at this table. Are
the values in both tables or just the "new" table?

Barry

"sike11 via AccessMonster.com" wrote:

Hey Barry,

The InsertNew routine DOES insert a record into a table which is definitely
happening. I check the table after I run the form and it is holding the
information inserted via the form.
VwQOE_QOE_ManualEntry is the table on which qryQOE-ManualUpdate is based. I
do get values from this table but I then insert into a separate table
(tblQOE_New).
The rowsource of the combobox is based on qryQOE-ManualUpdate from which I
then choose the field(s) I want to display.
No, the SQL string in the rowsource is as follows:

" SELECT [qryQOE-ManualUpdate].student_studentreference, [qryQOE-
ManualUpdate].[student-surname],
[qryQOE-ManualUpdate].student_forenames, Trim([student_forenames]) & " " &
Trim([student-surname])
AS Student FROM [qryQOE-ManualUpdate] ORDER BY [qryQOE-ManualUpdate].
[student-surname];"

Have I totally confused you or does this make sense?

Please advise.

Regards,

Mary.

Barry Gilbert wrote:
A few questions:
What does the InsertNew routine do? Does it insert a new record or update an
existing record? Are you sure this insert/update is happening?
What is Vw_QOE_ManualEntry? Does this get values from the same table you're
inserting into?
Is the SQL string the rowsource of the combobox?

Barry

Hi Barry,

[quoted text clipped - 15 lines]

Mary.


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200605/1

  #12  
Old May 18th, 2006, 07:03 PM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default Combo Box

Hi Barry,

The values are in both tables. The Vw_QOE_ManualEntry table is linked to a
SQL server. We just link to gain information about students. The rowsource of
the combo box is based on the query which uses the Vw_QOE_ManualEntry,
therefore, it does look at the table.
Please help.

Mary.

Barry Gilbert wrote:
Well maybe I am confused. You're inserting records into a table called
tblQOE_New but the rowsource of your combobox doesn't look at this table. Are
the values in both tables or just the "new" table?

Barry

Hey Barry,

[quoted text clipped - 37 lines]

Mary.


--
Message posted via http://www.accessmonster.com
  #13  
Old May 18th, 2006, 07:21 PM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default Combo Box

I guess I'd want to know if the problem is with the data or with the form.
Can you paste the rowsource into a query, run the update, and immediately run
the query to see if it returns an updated list? If it does, then the problem
is with the requery of the combobox.

Barry

"sike11 via AccessMonster.com" wrote:

Hi Barry,

The values are in both tables. The Vw_QOE_ManualEntry table is linked to a
SQL server. We just link to gain information about students. The rowsource of
the combo box is based on the query which uses the Vw_QOE_ManualEntry,
therefore, it does look at the table.
Please help.

Mary.

Barry Gilbert wrote:
Well maybe I am confused. You're inserting records into a table called
tblQOE_New but the rowsource of your combobox doesn't look at this table. Are
the values in both tables or just the "new" table?

Barry

Hey Barry,

[quoted text clipped - 37 lines]

Mary.


--
Message posted via http://www.accessmonster.com

  #14  
Old May 22nd, 2006, 10:28 AM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default Combo Box

Hi Barry,

Sorry to have taken so long to reply.

I tried what you suggested. Everything works fine apart from the requerry of
the combobox. The query returns the required list. I am unsure how to proceed
from here.
Any ideas?


Barry Gilbert wrote:
I guess I'd want to know if the problem is with the data or with the form.
Can you paste the rowsource into a query, run the update, and immediately run
the query to see if it returns an updated list? If it does, then the problem
is with the requery of the combobox.

Barry

Hi Barry,

[quoted text clipped - 17 lines]

Mary.


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200605/1
  #15  
Old May 22nd, 2006, 02:14 PM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default Combo Box

If the table is being correctly updated, the requery method should work.
There must be something else going on. Without seeing it in person, I'm out
of ideas.

Barry

"sike11 via AccessMonster.com" wrote:

Hi Barry,

Sorry to have taken so long to reply.

I tried what you suggested. Everything works fine apart from the requerry of
the combobox. The query returns the required list. I am unsure how to proceed
from here.
Any ideas?


Barry Gilbert wrote:
I guess I'd want to know if the problem is with the data or with the form.
Can you paste the rowsource into a query, run the update, and immediately run
the query to see if it returns an updated list? If it does, then the problem
is with the requery of the combobox.

Barry

Hi Barry,

[quoted text clipped - 17 lines]

Mary.


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200605/1

  #16  
Old May 24th, 2006, 03:03 PM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default Combo Box

Hello Barry,

Success at last!!!! I managed to get it working by requerying the combo box
in the AfterUpdate event of 1 of the textboxes.

Thank you very much for all the help you gave me, very much appreciated!!

Regards,

Mary.

Barry Gilbert wrote:
If the table is being correctly updated, the requery method should work.
There must be something else going on. Without seeing it in person, I'm out
of ideas.

Barry

Hi Barry,

[quoted text clipped - 17 lines]

Mary.


--
Message posted via http://www.accessmonster.com
 




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
Default Value for Combo Box Steve Running & Setting Up Queries 1 February 23rd, 2006 10:00 PM
Hidden Power of the Combo Box JethroUK© New Users 2 October 24th, 2005 09:18 AM
Hidden Power of the Combo Box JethroUK© Using Forms 2 October 24th, 2005 09:18 AM
Displaying Additional Columns in Access Form Roxanne General Discussion 3 September 20th, 2005 06:50 PM
Combo box value determined by the value of another combo box LouD General Discussion 8 July 9th, 2004 08:45 PM


All times are GMT +1. The time now is 12:22 AM.


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