J
Joan
Hi,
I have a form (called SalesScreen) where there are certain controls that I
want invisible. Even though I have the Visible property set to No in the
controls' property sheets, they are still appearing on the form ( in
datasheet view). The controls that I want to be invisible are:
[SalesPrice], [Store], [ReturnedSalesPrice], and [ReturnedStore]. I have
the visible property set to "No" for these controls.
I set the value of these fields in code. For instance in the AfterUpdate
event of [Store1] I have the following code:
<Private Sub Store1_AfterUpdate()
<Dim db As Database
<Dim rs As DAO.Recordset
<Set db = CurrentDb
<Set rs = db.OpenRecordset("EnterStoresQuery", dbOpenDynaset)
< If Forms!SalesScreen!Returned = "Y" Then
< Forms!SalesScreen!ReturnedStore = Format(Forms!SalesScreen!Store1,
">")
< Else
< Forms!SalesScreen!Store = Forms!SalesScreen!Store1
< End If
< If Forms!SalesScreen!Returned = "Y" And Not
IsNull(Forms!SalesScreen![Store1]) Then
< Forms!SalesScreen!ReturnedSalePrice = Forms!SalesScreen!SalesPrice1
< End If
< rs.Close
< db.Close
<End Sub
Likewise in the AfterUpdate event of [SalesPrice1] I have the following
code:
<Private Sub SalesPrice1_AfterUpdate()
< Dim db As Database
< Dim rs As DAO.Recordset
< Set db = CurrentDb
< Set rs = db.OpenRecordset("EnterStoresQuery", dbOpenDynaset)
< If Forms!SalesScreen!Returned = "Y" And Not
IsNull(Forms!SalesScreen![Store]) Then
< Forms!SalesScreen!ReturnedSalePrice = Forms!SalesScreen!SalesPrice1
< Else
< Forms!SalesScreen!SalesPrice = Forms!SalesScreen!SalesPrice1
< End If
< rs.Close
< db.Close
<End Sub
Is the form(datasheet view) still displaying these controls because their
value is set in the form module?
I cannot figure out why the controls are still being shown! Any help
figuring this out would be very appreciated.
Joan
I have a form (called SalesScreen) where there are certain controls that I
want invisible. Even though I have the Visible property set to No in the
controls' property sheets, they are still appearing on the form ( in
datasheet view). The controls that I want to be invisible are:
[SalesPrice], [Store], [ReturnedSalesPrice], and [ReturnedStore]. I have
the visible property set to "No" for these controls.
I set the value of these fields in code. For instance in the AfterUpdate
event of [Store1] I have the following code:
<Private Sub Store1_AfterUpdate()
<Dim db As Database
<Dim rs As DAO.Recordset
<Set db = CurrentDb
<Set rs = db.OpenRecordset("EnterStoresQuery", dbOpenDynaset)
< If Forms!SalesScreen!Returned = "Y" Then
< Forms!SalesScreen!ReturnedStore = Format(Forms!SalesScreen!Store1,
">")
< Else
< Forms!SalesScreen!Store = Forms!SalesScreen!Store1
< End If
< If Forms!SalesScreen!Returned = "Y" And Not
IsNull(Forms!SalesScreen![Store1]) Then
< Forms!SalesScreen!ReturnedSalePrice = Forms!SalesScreen!SalesPrice1
< End If
< rs.Close
< db.Close
<End Sub
Likewise in the AfterUpdate event of [SalesPrice1] I have the following
code:
<Private Sub SalesPrice1_AfterUpdate()
< Dim db As Database
< Dim rs As DAO.Recordset
< Set db = CurrentDb
< Set rs = db.OpenRecordset("EnterStoresQuery", dbOpenDynaset)
< If Forms!SalesScreen!Returned = "Y" And Not
IsNull(Forms!SalesScreen![Store]) Then
< Forms!SalesScreen!ReturnedSalePrice = Forms!SalesScreen!SalesPrice1
< Else
< Forms!SalesScreen!SalesPrice = Forms!SalesScreen!SalesPrice1
< End If
< rs.Close
< db.Close
<End Sub
Is the form(datasheet view) still displaying these controls because their
value is set in the form module?
I cannot figure out why the controls are still being shown! Any help
figuring this out would be very appreciated.
Joan