CONTOH :
Misalnya ada 2 form : Form1 dan Form2
di Form1 di kasih commandbutton untuk membuka Form2, dengan argument
tertentu :
code di Form1 :

Private Sub btnopen_Click()
DoCmd.OpenForm "FORM2", acNormal, , , , , "LUNA MAYA"
End Sub

perintah diatas untuk membuka Form2, dengan disertai argument "LUNA MAYA"
nah, di Form2 dikasih perintah untuk menerima argument dan digunakan untuk
mengubah
caption form:

Private Sub Form_Load()
Title = Me.OpenArgs
If Not IsNull(Title) Then Me.Caption = Me.OpenArgs
End Sub

maka caption form2 akan otomatis manjadi : LUNA MAYA



On Tue, Jun 29, 2010 at 10:29 AM, Ahmad Qomaruddin <[email protected]> wrote:

>
>
> ada contoh commandnya?
>
>
> On Mon, Jun 28, 2010 at 8:56 AM, Ivan Leonardo <[email protected]> wrote:
>
>>
>>
>> Maksud dari Openargs sbb :
>>
>> misal dari form A pakai command button instruksikan open form B dengan
>> mengisi option openargs nya (lihat docmd.openform)
>> Nah di event OnOpen form B kita bisa kasih kondisi, misal jika Nilai
>> Openargs = 1 lakukan ini, kalo 2 lakukan itu dan seterusnya.
>>
>> Spt itulah kira2 maksudnya. Mesti dicoba sendiri biar lebih ngerti.
>>
>>
>> ----------------------------------------------------------
>> This message contains confidential information and is intended only for
>> the individual named. If you are not the named addressee you should not
>> disseminate, distribute or copy this e-mail. Please notify the sender
>> immediately by e-mail if you have received this e-mail by mistake and delete
>> this e-mail from your system. E-mail transmission cannot be guaranteed to be
>> secure or error-free as information could be intercepted, corrupted, lost,
>> destroyed, arrive late or incomplete, or contain viruses. The sender
>> therefore does not accept liability for any errors or omissions in the
>> contents of this message, which arise as a result of e-mail transmission. If
>> verification is required please request a hard-copy version.
>>
>>
>
>
> --
> Ahmad Qomaruddin
> Sulang Rembang
> email : [email protected]
> blog : ud13en.blogspot.com
>  
>



-- 
---------------------------------------------
  grapyak-semanak-cluthak
http://djmumun.wordpress.com
http://facebook.com/djmumun
---------------------------------------------

Kirim email ke