PC Review


Reply
Thread Tools Rate Thread

Combo Box in Datasheet View (FORM)

 
 
=?Utf-8?B?Sks=?=
Guest
Posts: n/a
 
      1st Nov 2007
I took the MS Service Call Mgt. Template and created a database for our
Service Department. On the main screen I added a command button that opens a
form in datasheet view and displays all of the open workorders in the system.
Using this form is much easier than looking up the customer and then opening
the workorder screen.

The problem is, I can't use a combo box to change the technician (or
employee) in this Open Workorders form. When I created the form it made the
tech field a txt field even though in the workorders screen its a combo box.
I then created a new combo box field so that all of our techs show up. When I
try to change the value, my computer beeps and doesn't allow me to change it.

I thought maybe someone could help me?

Thx!
 
Reply With Quote
 
 
 
 
=?Utf-8?B?U3RldmVN?=
Guest
Posts: n/a
 
      1st Nov 2007
Is the form's AllowEdits property set to 'Yes'?

Is the form based on a query or table?
If a query, is it updateable?

If you are not sure, paste the SQL of your query in reply.

--
Steve McGuire
MCSD, MCAD, MCP


"JK" wrote:

> I took the MS Service Call Mgt. Template and created a database for our
> Service Department. On the main screen I added a command button that opens a
> form in datasheet view and displays all of the open workorders in the system.
> Using this form is much easier than looking up the customer and then opening
> the workorder screen.
>
> The problem is, I can't use a combo box to change the technician (or
> employee) in this Open Workorders form. When I created the form it made the
> tech field a txt field even though in the workorders screen its a combo box.
> I then created a new combo box field so that all of our techs show up. When I
> try to change the value, my computer beeps and doesn't allow me to change it.
>
> I thought maybe someone could help me?
>
> Thx!

 
Reply With Quote
 
=?Utf-8?B?Sks=?=
Guest
Posts: n/a
 
      1st Nov 2007
I guess I'm not sure. Although I can tell you, I am able to update some
fields in the datasheet form, but not the technician field (whether it's the
text field or the combo box field.)

This is the SQL behind the form (query) record source:
Below this, I've pasted the SQL behind the combo box (query

SELECT DISTINCTROW Customers.AccountNumber, Customers.CompanyName,
Customers.ContactFirstName AS [Contact Name], Customers.PhoneNumber,
Workorders.WorkorderID, Workorders.DateReceived, Workorders.DateRequired,
Workorders.MakeAndModel, Workorders.ProblemDescription, [LastName] & ", " &
[FirstName] AS Tech, Workorders.DateFinished, Workorders.DatePickedUp
FROM (Customers INNER JOIN Workorders ON Customers.CustomerID =
Workorders.CustomerID) INNER JOIN Employees ON Workorders.EmployeeID =
Employees.EmployeeID
WHERE (((Workorders.DateFinished) Is Null))
ORDER BY [LastName] & ", " & [FirstName];


Combo Box Query Row Source

SELECT Employees.EmployeeID, [LastName] & ", " & [FirstName] AS Expr1
FROM Employees;





"SteveM" wrote:

> Is the form's AllowEdits property set to 'Yes'?
>
> Is the form based on a query or table?
> If a query, is it updateable?
>
> If you are not sure, paste the SQL of your query in reply.
>
> --
> Steve McGuire
> MCSD, MCAD, MCP
>
>
> "JK" wrote:
>
> > I took the MS Service Call Mgt. Template and created a database for our
> > Service Department. On the main screen I added a command button that opens a
> > form in datasheet view and displays all of the open workorders in the system.
> > Using this form is much easier than looking up the customer and then opening
> > the workorder screen.
> >
> > The problem is, I can't use a combo box to change the technician (or
> > employee) in this Open Workorders form. When I created the form it made the
> > tech field a txt field even though in the workorders screen its a combo box.
> > I then created a new combo box field so that all of our techs show up. When I
> > try to change the value, my computer beeps and doesn't allow me to change it.
> >
> > I thought maybe someone could help me?
> >
> > Thx!

 
Reply With Quote
 
=?Utf-8?B?Sks=?=
Guest
Posts: n/a
 
      1st Nov 2007
Actually, I think I know why this is happening, I just don't know how to fix
it. This is becuase the 'Tech' field is made up of two other fields. It's not
a direct link to the table - right?

"JK" wrote:

> I guess I'm not sure. Although I can tell you, I am able to update some
> fields in the datasheet form, but not the technician field (whether it's the
> text field or the combo box field.)
>
> This is the SQL behind the form (query) record source:
> Below this, I've pasted the SQL behind the combo box (query
>
> SELECT DISTINCTROW Customers.AccountNumber, Customers.CompanyName,
> Customers.ContactFirstName AS [Contact Name], Customers.PhoneNumber,
> Workorders.WorkorderID, Workorders.DateReceived, Workorders.DateRequired,
> Workorders.MakeAndModel, Workorders.ProblemDescription, [LastName] & ", " &
> [FirstName] AS Tech, Workorders.DateFinished, Workorders.DatePickedUp
> FROM (Customers INNER JOIN Workorders ON Customers.CustomerID =
> Workorders.CustomerID) INNER JOIN Employees ON Workorders.EmployeeID =
> Employees.EmployeeID
> WHERE (((Workorders.DateFinished) Is Null))
> ORDER BY [LastName] & ", " & [FirstName];
>
>
> Combo Box Query Row Source
>
> SELECT Employees.EmployeeID, [LastName] & ", " & [FirstName] AS Expr1
> FROM Employees;
>
>
>
>
>
> "SteveM" wrote:
>
> > Is the form's AllowEdits property set to 'Yes'?
> >
> > Is the form based on a query or table?
> > If a query, is it updateable?
> >
> > If you are not sure, paste the SQL of your query in reply.
> >
> > --
> > Steve McGuire
> > MCSD, MCAD, MCP
> >
> >
> > "JK" wrote:
> >
> > > I took the MS Service Call Mgt. Template and created a database for our
> > > Service Department. On the main screen I added a command button that opens a
> > > form in datasheet view and displays all of the open workorders in the system.
> > > Using this form is much easier than looking up the customer and then opening
> > > the workorder screen.
> > >
> > > The problem is, I can't use a combo box to change the technician (or
> > > employee) in this Open Workorders form. When I created the form it made the
> > > tech field a txt field even though in the workorders screen its a combo box.
> > > I then created a new combo box field so that all of our techs show up. When I
> > > try to change the value, my computer beeps and doesn't allow me to change it.
> > >
> > > I thought maybe someone could help me?
> > >
> > > Thx!

 
Reply With Quote
 
=?Utf-8?B?U3RldmVN?=
Guest
Posts: n/a
 
      1st Nov 2007
You got it.

Change the 'Tech' field to EmployeeID.

Then, when you change the selection in the combo, the EmployeeID (bound
column)is saved in the field. If you have the first column width set to '0'
then you will see the next column. Your combo will show the name
corresponding to the EmployeeID.

--
Steve McGuire
MCSD, MCAD, MCP


"JK" wrote:

> Actually, I think I know why this is happening, I just don't know how to fix
> it. This is becuase the 'Tech' field is made up of two other fields. It's not
> a direct link to the table - right?
>
> "JK" wrote:
>
> > I guess I'm not sure. Although I can tell you, I am able to update some
> > fields in the datasheet form, but not the technician field (whether it's the
> > text field or the combo box field.)
> >
> > This is the SQL behind the form (query) record source:
> > Below this, I've pasted the SQL behind the combo box (query
> >
> > SELECT DISTINCTROW Customers.AccountNumber, Customers.CompanyName,
> > Customers.ContactFirstName AS [Contact Name], Customers.PhoneNumber,
> > Workorders.WorkorderID, Workorders.DateReceived, Workorders.DateRequired,
> > Workorders.MakeAndModel, Workorders.ProblemDescription, [LastName] & ", " &
> > [FirstName] AS Tech, Workorders.DateFinished, Workorders.DatePickedUp
> > FROM (Customers INNER JOIN Workorders ON Customers.CustomerID =
> > Workorders.CustomerID) INNER JOIN Employees ON Workorders.EmployeeID =
> > Employees.EmployeeID
> > WHERE (((Workorders.DateFinished) Is Null))
> > ORDER BY [LastName] & ", " & [FirstName];
> >
> >
> > Combo Box Query Row Source
> >
> > SELECT Employees.EmployeeID, [LastName] & ", " & [FirstName] AS Expr1
> > FROM Employees;
> >
> >
> >
> >
> >
> > "SteveM" wrote:
> >
> > > Is the form's AllowEdits property set to 'Yes'?
> > >
> > > Is the form based on a query or table?
> > > If a query, is it updateable?
> > >
> > > If you are not sure, paste the SQL of your query in reply.
> > >
> > > --
> > > Steve McGuire
> > > MCSD, MCAD, MCP
> > >
> > >
> > > "JK" wrote:
> > >
> > > > I took the MS Service Call Mgt. Template and created a database for our
> > > > Service Department. On the main screen I added a command button that opens a
> > > > form in datasheet view and displays all of the open workorders in the system.
> > > > Using this form is much easier than looking up the customer and then opening
> > > > the workorder screen.
> > > >
> > > > The problem is, I can't use a combo box to change the technician (or
> > > > employee) in this Open Workorders form. When I created the form it made the
> > > > tech field a txt field even though in the workorders screen its a combo box.
> > > > I then created a new combo box field so that all of our techs show up. When I
> > > > try to change the value, my computer beeps and doesn't allow me to change it.
> > > >
> > > > I thought maybe someone could help me?
> > > >
> > > > Thx!

 
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
Combo on form in Datasheet view ChrisK Microsoft Access Forms 3 22nd Apr 2009 06:31 AM
Form in datasheet view will not show my 2 subforms in datasheet vi =?Utf-8?B?VGhlMm5kMDA3YmFiZQ==?= Microsoft Access Forms 1 5th Mar 2007 07:41 PM
Sync two Combo boxes in Datasheet view of a FORM =?Utf-8?B?QnJhZA==?= Microsoft Access Form Coding 2 11th Jul 2005 11:09 PM
Can a datasheet view in a form have a combo box? =?Utf-8?B?UGV0ZQ==?= Microsoft Access Forms 1 22nd Apr 2005 08:51 AM
Combo Box on Datasheet View Form =?Utf-8?B?SmFtZXMgU3RlcGhlbnM=?= Microsoft Access Forms 0 16th Feb 2005 10:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:44 PM.