dbTalk Databases Forums  

Don't want to update table

comp.databases.ms-access comp.databases.ms-access


Discuss Don't want to update table in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dave Moore
 
Posts: n/a

Default Don't want to update table - 04-16-2009 , 03:05 PM






Hi! I'm trying to create a form that allows the user to print a report
based on an identifier that they enter. I created a form with a text
box tied to the table I'm pulling information from and then I
reference the text box in my queries for the report (ie., Form!
Frm_name!Textbox ).
I found that when the form comes up, when the person types the
identifier over the identifier showing, it actually updates that
record in the table with the new identifier.
Can I just change the property of the text box to "unbound" to get
around this problem?


Reply With Quote
  #2  
Old   
Rich P
 
Posts: n/a

Default Re: Don't want to update table - 04-16-2009 , 03:28 PM






Instead of using a text box - which is obviously attached to the table -
use a listbox - or a combobox. In the listbox the user can scroll to
find the desired identifyer. In a combobox the user can start type part
of the identifyer name and the rest will populdate. You can use the Key
Enter event to trigger the combobox or click event (for combo or list
boxes) to bring up the desired report.

Rich

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #3  
Old   
Tom van Stiphout
 
Posts: n/a

Default Re: Don't want to update table - 04-16-2009 , 11:51 PM



On 16 Apr 2009 20:28:00 GMT, Rich P <rpng123 (AT) aol (DOT) com> wrote:

I'm going to disagree with you. A textbox is not neccesarily attached
(bound) to a table: simply set the ControlSource to <blank>.
Otherwise I do agree with you that a dropdown is a good idea because
user has to enter only a few chars to find the report they want to
run, and mouse-centric people are helped as well.
Then the best event to launch the report is not a KeyEnter event
(there is no such thing, though there is an Enter and several Key*
events) but the <control>_AfterUpdate event.

-Tom.
Microsoft Access MVP


Quote:
Instead of using a text box - which is obviously attached to the table -
use a listbox - or a combobox. In the listbox the user can scroll to
find the desired identifyer. In a combobox the user can start type part
of the identifyer name and the rest will populdate. You can use the Key
Enter event to trigger the combobox or click event (for combo or list
boxes) to bring up the desired report.

Rich

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #4  
Old   
Dave Moore
 
Posts: n/a

Default Re: Don't want to update table - 04-17-2009 , 10:06 AM



On Apr 17, 12:51*am, Tom van Stiphout <tom7744.no.s... (AT) cox (DOT) net> wrote:
Quote:
On 16 Apr 2009 20:28:00 GMT, Rich P <rpng... (AT) aol (DOT) com> wrote:

I'm going to disagree with you. A textbox is not neccesarily attached
(bound) to a table: simply set the ControlSource to <blank>.
Otherwise I do agree with you that a dropdown is a good idea because
user has to enter only a few chars to find the report they want to
run, and mouse-centric people are helped as well.
Then the best event to launch the report is not a KeyEnter event
(there is no such thing, though there is an Enter and several Key*
events) but the <control>_AfterUpdate event.

-Tom.
Microsoft Access MVP



Instead of using a text box - which is obviously attached to the table -
use a listbox - or a combobox. *In the listbox the user can scroll to
find the desired identifyer. *In a combobox the user can start type part
of the identifyer name and the rest will populdate. *You can use the Key
Enter event to trigger the combobox or click event (for combo or list
boxes) to bring up the desired report. *

Rich

*** Sent via Developersdexhttp://www.developersdex.com***- Hide quoted text -

- Show quoted text -
Thanks for the suggestions. I have several reports that I have tied to
text boxes that are generated when clicked. The queries that drive the
reports use the input from the textbox (ie., Form!Frm_name!Textbox).
How do I get the "selected" appropriate value from the combo box to
now populate that textbox or get the query to use the selected item.
Specifically, I have created a query that lists the employee's name
and their employee ID in the combo box. I need the Employee ID in the
queries that my reports use.

David


Reply With Quote
  #5  
Old   
Salad
 
Posts: n/a

Default Re: Don't want to update table - 04-17-2009 , 11:04 AM



Dave Moore wrote:

Quote:
On Apr 17, 12:51 am, Tom van Stiphout <tom7744.no.s... (AT) cox (DOT) net> wrote:

On 16 Apr 2009 20:28:00 GMT, Rich P <rpng... (AT) aol (DOT) com> wrote:

I'm going to disagree with you. A textbox is not neccesarily attached
(bound) to a table: simply set the ControlSource to <blank>.
Otherwise I do agree with you that a dropdown is a good idea because
user has to enter only a few chars to find the report they want to
run, and mouse-centric people are helped as well.
Then the best event to launch the report is not a KeyEnter event
(there is no such thing, though there is an Enter and several Key*
events) but the <control>_AfterUpdate event.

-Tom.
Microsoft Access MVP




Instead of using a text box - which is obviously attached to the table -
use a listbox - or a combobox. In the listbox the user can scroll to
find the desired identifyer. In a combobox the user can start type part
of the identifyer name and the rest will populdate. You can use the Key
Enter event to trigger the combobox or click event (for combo or list
boxes) to bring up the desired report.

Rich

*** Sent via Developersdexhttp://www.developersdex.com***- Hide quoted text -

- Show quoted text -


Thanks for the suggestions. I have several reports that I have tied to
text boxes that are generated when clicked. The queries that drive the
reports use the input from the textbox (ie., Form!Frm_name!Textbox).
How do I get the "selected" appropriate value from the combo box to
now populate that textbox or get the query to use the selected item.
Specifically, I have created a query that lists the employee's name
and their employee ID in the combo box. I need the Employee ID in the
queries that my reports use.

David
Take a look at the Column property in help.


Reply With Quote
  #6  
Old   
Dave Moore
 
Posts: n/a

Default Re: Don't want to update table - 04-17-2009 , 01:28 PM



On Apr 17, 12:04*pm, Salad <o... (AT) vinegar (DOT) com> wrote:
Quote:
Dave Moore wrote:
On Apr 17, 12:51 am, Tom van Stiphout <tom7744.no.s... (AT) cox (DOT) net> wrote:

On 16 Apr 2009 20:28:00 GMT, Rich P <rpng... (AT) aol (DOT) com> wrote:

I'm going to disagree with you. A textbox is not neccesarily attached
(bound) to a table: simply set the ControlSource to <blank>.
Otherwise I do agree with you that a dropdown is a good idea because
user has to enter only a few chars to find the report they want to
run, and mouse-centric people are helped as well.
Then the best event to launch the report is not a KeyEnter event
(there is no such thing, though there is an Enter and several Key*
events) but the <control>_AfterUpdate event.

-Tom.
Microsoft Access MVP

Instead of using a text box - which is obviously attached to the table-
use a listbox - or a combobox. *In the listbox the user can scroll to
find the desired identifyer. *In a combobox the user can start type part
of the identifyer name and the rest will populdate. *You can use theKey
Enter event to trigger the combobox or click event (for combo or list
boxes) to bring up the desired report. *

Rich

*** Sent via Developersdexhttp://www.developersdex.com***-Hide quoted text -

- Show quoted text -

Thanks for the suggestions. I have several reports that I have tied to
text boxes that are generated when clicked. The queries that drive the
reports use the input from the textbox (ie., Form!Frm_name!Textbox).
How do I get the "selected" appropriate value from the combo box to
now populate that textbox or get the query to use the selected item.
Specifically, I have created a query that lists the employee's name
and their employee ID in the combo box. I need the Employee ID in the
queries that my reports use.

David

Take a look at the Column property in help.- Hide quoted text -

- Show quoted text -
Thanks to everyone for their comments/advice. It was very helpful. My
form works great (other than I don't understand how to get the combo
box to allow someone to enter another name and select a new person
when they click the mouse in the box - tabbing to the box seems to
solve this problem).

David


Reply With Quote
  #7  
Old   
Salad
 
Posts: n/a

Default Re: Don't want to update table - 04-17-2009 , 01:55 PM



Dave Moore wrote:

Quote:
On Apr 17, 12:04 pm, Salad <o... (AT) vinegar (DOT) com> wrote:

Dave Moore wrote:

On Apr 17, 12:51 am, Tom van Stiphout <tom7744.no.s... (AT) cox (DOT) net> wrote:

On 16 Apr 2009 20:28:00 GMT, Rich P <rpng... (AT) aol (DOT) com> wrote:

I'm going to disagree with you. A textbox is not neccesarily attached
(bound) to a table: simply set the ControlSource to <blank>.
Otherwise I do agree with you that a dropdown is a good idea because
user has to enter only a few chars to find the report they want to
run, and mouse-centric people are helped as well.
Then the best event to launch the report is not a KeyEnter event
(there is no such thing, though there is an Enter and several Key*
events) but the <control>_AfterUpdate event.

-Tom.
Microsoft Access MVP

Instead of using a text box - which is obviously attached to the table -
use a listbox - or a combobox. In the listbox the user can scroll to
find the desired identifyer. In a combobox the user can start type part
of the identifyer name and the rest will populdate. You can use the Key
Enter event to trigger the combobox or click event (for combo or list
boxes) to bring up the desired report.

Rich

*** Sent via Developersdexhttp://www.developersdex.com***-Hide quoted text -

- Show quoted text -

Thanks for the suggestions. I have several reports that I have tied to
text boxes that are generated when clicked. The queries that drive the
reports use the input from the textbox (ie., Form!Frm_name!Textbox).
How do I get the "selected" appropriate value from the combo box to
now populate that textbox or get the query to use the selected item.
Specifically, I have created a query that lists the employee's name
and their employee ID in the combo box. I need the Employee ID in the
queries that my reports use.

David

Take a look at the Column property in help.- Hide quoted text -

- Show quoted text -


Thanks to everyone for their comments/advice. It was very helpful. My
form works great (other than I don't understand how to get the combo
box to allow someone to enter another name and select a new person
when they click the mouse in the box - tabbing to the box seems to
solve this problem).

David
The AfterUpdate event?


Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.