accessing form functions from module (1 Viewer)

penfold1992

Registered User.
Local time
Today, 18:29
Joined
Nov 22, 2012
Messages
169
hello, I want to put some form functions into a module but it says that it cannot find the form...

here is what I currently have in the module:

Public Sub Fun_Test()
Forms!Form_Output!Sequence.ColumnWidth = 250
End Sub

my form name is "Form_Output" but it still cant find it... does anyone have any suggestions?
 

penfold1992

Registered User.
Local time
Today, 18:29
Joined
Nov 22, 2012
Messages
169
Because this was a subform it had to be dealt with like so:

Public Sub Fun_Test()
Forms!Main!ClusterSubform.Form!Sequence.ColumnWidth = 250
End Sub
 

Users who are viewing this thread

Top Bottom