PC Review


Reply
Thread Tools Rate Thread

Button on Datasheet of subform

 
 
Sameer
Guest
Posts: n/a
 
      12th Nov 2003
Hello all,
I have a question.
I have a person record, who can have many locations, and
each location can have multiple phone and fax numbers.
From the person record, I want a subform for locations in
the datasheet view where I can enter the address, city,
state etc and then for each location, on the datasheet is
there a way to have a button for entering phone numbers
and fax numbers. I know this might not be possible, but in
that case, is it possible to have a button on the subform
header where depending on which location is clicked there
is a generic button for phones and faxes. I tried this as
well, but it seems like the form does not display the
header if it is in datasheet format.
Any help will be appreciated.
Thanks
Sameer

 
Reply With Quote
 
 
 
 
Gary Miller
Guest
Posts: n/a
 
      12th Nov 2003
Sameer,

This is one of the limitations of using a form in a
datasheet format. You lose access to events and specialized
controls such as command buttons. What you can do is to
redesign your form so that it 'looks like' a datasheet view.
Now you can keep your Header and have access to events.

--

Gary Miller
Gary Miller Computer Services
Sisters, OR
________________________
"Sameer" <(E-Mail Removed)> wrote in
message news:28ec01c3a96e$95a68200$(E-Mail Removed)...
> Hello all,
> I have a question.
> I have a person record, who can have many locations, and
> each location can have multiple phone and fax numbers.
> From the person record, I want a subform for locations in
> the datasheet view where I can enter the address, city,
> state etc and then for each location, on the datasheet is
> there a way to have a button for entering phone numbers
> and fax numbers. I know this might not be possible, but in
> that case, is it possible to have a button on the subform
> header where depending on which location is clicked there
> is a generic button for phones and faxes. I tried this as
> well, but it seems like the form does not display the
> header if it is in datasheet format.
> Any help will be appreciated.
> Thanks
> Sameer
>



 
Reply With Quote
 
Adrian Jansen
Guest
Posts: n/a
 
      12th Nov 2003
You cant have a button on a datasheet. But there are two ways around:

1> Use a Continuous form, which you can set up to look just like a
datasheet.

2> Replace the phone/fax text fields with combo boxes, then add more entries
using the not-in-list event.


--
Regards,

Adrian Jansen
J & K MicroSystems
Microcomputer solutions for industrial control
"Sameer" <(E-Mail Removed)> wrote in message
news:28ec01c3a96e$95a68200$(E-Mail Removed)...
> Hello all,
> I have a question.
> I have a person record, who can have many locations, and
> each location can have multiple phone and fax numbers.
> From the person record, I want a subform for locations in
> the datasheet view where I can enter the address, city,
> state etc and then for each location, on the datasheet is
> there a way to have a button for entering phone numbers
> and fax numbers. I know this might not be possible, but in
> that case, is it possible to have a button on the subform
> header where depending on which location is clicked there
> is a generic button for phones and faxes. I tried this as
> well, but it seems like the form does not display the
> header if it is in datasheet format.
> Any help will be appreciated.
> Thanks
> Sameer
>



 
Reply With Quote
 
Pavel Romashkin
Guest
Posts: n/a
 
      12th Nov 2003
I approached this by having 2 subforms for each person - one, all
locations in a datasheet form, where it is easy to pick the location of
interest, another - using the same recordset - in a single form view,
with all the details editable. This way, when you select the location,
it is automatically shown in the detail view.

Pavel

Sameer wrote:
>
> Hello all,
> I have a question.
> I have a person record, who can have many locations, and
> each location can have multiple phone and fax numbers.
> From the person record, I want a subform for locations in
> the datasheet view where I can enter the address, city,
> state etc and then for each location, on the datasheet is
> there a way to have a button for entering phone numbers
> and fax numbers. I know this might not be possible, but in
> that case, is it possible to have a button on the subform
> header where depending on which location is clicked there
> is a generic button for phones and faxes. I tried this as
> well, but it seems like the form does not display the
> header if it is in datasheet format.
> Any help will be appreciated.
> Thanks
> Sameer

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sort datasheet subform by column with command button on main form Robert Microsoft Access Form Coding 1 31st Jan 2009 07:11 PM
Button to delete record on datasheet subform Robert Microsoft Access Form Coding 5 30th May 2008 12:34 AM
Subform Issue: Datasheet fields display #Deleted upon subform focus jeffcunn@gmail.com Microsoft Access Form Coding 4 22nd Feb 2007 09:48 PM
Set focus to subform(datasheet) from refresh button nathank via AccessMonster.com Microsoft Access Form Coding 0 14th Sep 2006 08:34 PM
Command button in datasheet subform NancyV Microsoft Access VBA Modules 1 30th Jan 2004 07:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:34 PM.