Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / July 2007

Tip: Looking for answers? Try searching our database.

Hide bound column of combo box and access crashes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeremy - 20 Jul 2007 21:08 GMT
I have a bound form with an unbound combo box. The query behind the
combo returns 6 fields and when I "hide" the first column which is the
bound column, access just crashes and goes away. I have narrowed it
down to if I set the width of the first column to anything other than
zero, it works fine. However, if I set it to zero, then access crashes
when after I select a record from the combo.

I have used this technique before to do things like select a customer
or user. The customer id is bound but is hidden and instead the
customer name is shown in the combo. I am a little confused and think
that this may be related to the query because I have a combo that is
almost identical except it only has 5 fields. Has anybody had anything
like this before? Please help if you have any ideas.

------------
Details
------------
bound column = 1
column count = 6
column heads = Yes
column widths(works) = 0.5";0.5";0.5";0.5";0.5";0"
column widths(crashes) = 0";0.5";0.5";0.5";0.5";0"

query =

SELECT [Products2-Products].ProdCode, [Deliverer] & ' ' &
[ProdNickName] AS Name, IIf([CP]<>0,[CP],[Products2-
Products].ProdPrice) AS Price, [VoucherPull-QIS].Qty AS InStock,
IIf(IsNull([Products2-Products].Mode)=True Or [Products2-
Products].Mode=0,[VoucherPull-MinExp].MinOfExpires,IIf([Products2-
Products].mode=1,IIf(IsNull([Products2-Products].DateOverride)=True,
[VoucherPull-MinExp].MinOfExpires,[Products2-
Products].DateOverride),IIf(IsNull([Products2-
Products].DateOverride)=True,[VoucherPull-
MinExp].MinOfExpires,DateAdd('d',[Products2-Products].DateOverride,
[VoucherPull-MinExp].MinOfExpires)))) AS [Lowest Exp], (SELECT TOP 1
CustomerPriceLevels.CustPrice FROM CustomerPriceLevels WHERE
(((CustomerPriceLevels.CustID)=Forms![Draft Orders]![CustID]) AND
((CustomerPriceLevels.ProdID)=[Products2-Products].[ProdCode])) ORDER
BY CustomerPriceLevels.Date DESC;) AS CP FROM [Products2-Products]
INNER JOIN (([VoucherPull-QIS] INNER JOIN ([VoucherPull-MinExp] INNER
JOIN [Products2-Exams] ON [VoucherPull-MinExp].ExamName=[Products2-
Exams].ExamName) ON [VoucherPull-QIS].ExamName=[Products2-
Exams].ExamName) INNER JOIN [Products2-Junction Products/Exams] ON
[Products2-Exams].ID=[Products2-Junction Products/Exams].ExamID) ON
[Products2-Products].ProdCode=[Products2-Junction Products/
Exams].ProductCode WHERE ((([VoucherPull-QIS].Qty)>0) AND (([Products2-
Products].Special)=True) AND (([Products2-Products].Active)=True))
ORDER BY [Deliverer] & ' ' & [ProdNickName];
OldPro - 20 Jul 2007 23:19 GMT
> I have a bound form with an unbound combo box. The query behind the
> combo returns 6 fields and when I "hide" the first column which is the
[quoted text clipped - 45 lines]
> Products].Special)=True) AND (([Products2-Products].Active)=True))
> ORDER BY [Deliverer] & ' ' & [ProdNickName];

Try one less field and see what happens...
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.