K
KRISH
Hi! everybody
Below i am giving a sample code to create textbox in
report called Report1tmp. Now I need your help how to give
the name of the textbox while creating it. I dont want the
default names randamly giving by the system like Text1,
Text2,.....
Dim rep As Report
Dim ctrTxtBox As Control
DoCmd.OpenReport "Report1tmp", acViewDesign
Set ctrTxtBox = CreateReportControl("Report1tmp",
acTextBox, acDetail, "Session", "=Session", 100, 100,
1000, 1000)
DoCmd.Restore
DoCmd.RepaintObject
DoCmd.OpenReport "Report1tmp", acViewPreview
Thanks for your help.
Krish
Below i am giving a sample code to create textbox in
report called Report1tmp. Now I need your help how to give
the name of the textbox while creating it. I dont want the
default names randamly giving by the system like Text1,
Text2,.....
Dim rep As Report
Dim ctrTxtBox As Control
DoCmd.OpenReport "Report1tmp", acViewDesign
Set ctrTxtBox = CreateReportControl("Report1tmp",
acTextBox, acDetail, "Session", "=Session", 100, 100,
1000, 1000)
DoCmd.Restore
DoCmd.RepaintObject
DoCmd.OpenReport "Report1tmp", acViewPreview
Thanks for your help.
Krish