Rabu, 01 Juni 2011

Re: [belajar-access] seek pada ms access

 

Dear Mas Trisna, untuk recordset bisa menggunakan code:
 
NamaRecordset.FindFirst = Mencari dari record pertama hingga terakhir
NamaRecordset.FindLast = Mencari dari record terakhir hingga pertama
 
Wassalaamu'alaikum Warahmatullahi Wabarakatuh,
Sofyan Efendi.
http://opi.110mb.com/
----- Original Message -----
Sent: Wednesday, June 01, 2011 4:15 PM
Subject: [belajar-access] seek pada ms access

 

Dear all,

Untuk kesekian kalinya saya mau tanya, saya sebelumnya biasa pakai foxpro, kalau di foxpro ada pencarian berdasarkan index "contoh: seek kdbrg" nah kalau di ms access menggunakan apa ya pak/mas.

Thx

andri

__._,_.___
Recent Activity:
SPAM IS PROHIBITED
.

__,_._,___

[belajar-access] seek pada ms access

 

Dear all,

 

Untuk kesekian kalinya saya mau tanya, saya sebelumnya biasa pakai foxpro, kalau di foxpro ada pencarian berdasarkan index “contoh: seek kdbrg” nah kalau di ms access menggunakan apa ya pak/mas.

 

Thx

andri

__._,_.___
Recent Activity:
SPAM IS PROHIBITED
.

__,_._,___

Re: [belajar-access] OOT: Daftar Kopdar

 

Noted kang cecep.
Sy akan booking-kan buat kang cecep. Nanti bayar di TKP aja sekalian registrasi ulang.

Bila ada lagi yg mau bayar di TKP, mohon konfirm ke panitia (ke saya jg boleh) agar bs sy list.

Thanks
Lusky Kurniawan
021 - 9293 1925



Pada 1 Juni 2011 10:49, Cecep W <cepwahyu@gmail.com> menulis:
 

Dear Panitia KOPDAR,

sebelumnya saya minta maaf kalo saya menggunakan jalur milis ini
karena melalui jalur kopdar@rumahaccess.com tidak ada respons.

saya mau daftar kopdar tp bayar ditempat, bisa ga? kalo transfer
membutuhkan 3 hari kerja (Mandiri ke BCA) kerena sy pake mandiri. jd
kalo transfer hari ini sy khawatir tidak nyampe sebelum tgl 5.

Regards
Cecep Wahyudin


__._,_.___
Recent Activity:
SPAM IS PROHIBITED
.

__,_._,___

RE: [MS_AccessPros] Re: Open form using combo box and command button

 

Kat-

Your previous message came in at midnight Paris time - sorry, I was sound
asleep.

First, there should be NO Record Source for the FIND CONTRACT form. You'll be
changing the data in the first record in the contracts table every time to pick
search criteria if you do that!!

Also remove the Control Source from the three combo boxes.

The Where Condition for the Vendor macro:

="[VENDOR=" & [VENDOR ID]

..

Should be:

="[VENDOR ID] = " & [VENDOR NAME]

(Or you could do & [VENDOR ID] if you change the name of the combo box.)

You fixed the Row Source for Employee, but you didn't fix the macro. The Where
Condition should be:

="[EMPLOYEE ID] = " & [EMPLOYEE NAME]

(Or, if you change the combo box name, use [EMPLOYEE ID] for the second part.)

John Viescas, author
Microsoft Office Access 2010 Inside Out
Microsoft Office Access 2007 Inside Out
Building Microsoft Access Applications
Microsoft Office Access 2003 Inside Out
SQL Queries for Mere Mortals
http://www.viescas.com/
(Paris, France)

-----Original Message-----
From: MS_Access_Professionals@yahoogroups.com
[mailto:MS_Access_Professionals@yahoogroups.com] On Behalf Of ka0t1c_ang3l
Sent: Wednesday, June 01, 2011 6:02 AM
To: MS_Access_Professionals@yahoogroups.com
Subject: [MS_AccessPros] Re: Open form using combo box and command button

John -

Did you get a chance to look at the database? Still can't figure out what I'm
doing wrong... Please help! I've got a deadline and am in a bind.

Thanks!

Kat

--- In MS_Access_Professionals@yahoogroups.com, ka0t1c_ang3l <no_reply@...>
wrote:
>
> John -
>
> I changed the combo boxes on the search form to the match the ones on my
contract form, and I took off the quotes; however, it's still not pulling up the
information. I've uploaded an updated database showing what I did. Also, now
everytime I make a selection and hit the command button to pull of the
information it creates a new record in my contract table, not sure why it's
doing that now.
>
> Thanks!
>
> Kat
>
> --- In MS_Access_Professionals@yahoogroups.com, "John Viescas" <john@> wrote:
> >
> > Kat-
> >
> > Well, you have a Vendor ID on the Contract Form, so you need to change your
> > filter rather than add the Vendor Information table. The combo box on your
> > search form should be exactly the same as the Vendor combo box on the
Contract
> > Form. That will bind the search combo to the ID, not the vendor name, and
you
> > can search using that. Don't put quotes around the parameter value because
> > you'll be searching on a number, not a text value. You need to do a similar
> > thing to your Employee search - search for the matching ID, not the name.
Your
> > search on "Category" (Type of Lease) should work because you're using the
text,
> > not an artificial ID.
> >
> > John Viescas, author
> > Microsoft Office Access 2010 Inside Out
> > Microsoft Office Access 2007 Inside Out
> > Building Microsoft Access Applications
> > Microsoft Office Access 2003 Inside Out
> > SQL Queries for Mere Mortals
> > http://www.viescas.com/
> > (Paris, France)
> >
> >
> >
> > -----Original Message-----
> > From: MS_Access_Professionals@yahoogroups.com
> > [mailto:MS_Access_Professionals@yahoogroups.com] On Behalf Of ka0t1c_ang3l
> > Sent: Tuesday, May 31, 2011 8:13 PM
> > To: MS_Access_Professionals@yahoogroups.com
> > Subject: [MS_AccessPros] Re: Open form using combo box and command button
> >
> > John,
> >
> > I uploaded a new database that shows the arguments in the Find Contract
Form.
> > I'm not sure how to add the vendor name into the record source of the
contract
> > form. At this point I feel if I add anything I'll mess up my database.....
> >
> > Thanks!
> >
> > Kat
> >
> > --- In MS_Access_Professionals@yahoogroups.com, "John Viescas" <john@>
wrote:
> > >
> > > Kat-
> > >
> > > I found no argument in the macro to open the contract form. What is in
the
> > > Where Condition? Note that Vendor Name isn't in the Record Source of the
> > > contract form, so perhaps that's why you're getting prompted.
> > >
> > > John Viescas, author
> > > Microsoft Office Access 2010 Inside Out
> > > Microsoft Office Access 2007 Inside Out
> > > Building Microsoft Access Applications
> > > Microsoft Office Access 2003 Inside Out
> > > SQL Queries for Mere Mortals
> > > http://www.viescas.com/
> > > (Paris, France)
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: MS_Access_Professionals@yahoogroups.com
> > > [mailto:MS_Access_Professionals@yahoogroups.com] On Behalf Of ka0t1c_ang3l
> > > Sent: Tuesday, May 31, 2011 6:23 PM
> > > To: MS_Access_Professionals@yahoogroups.com
> > > Subject: Re: [MS_AccessPros] Open form using combo box and command button
> > >
> > > John,
> > >
> > > I do have an argument in the Where Condition; however, when I make a
selection
> > > and click on the command button it pops up another small window asking me
to
> > > type either the vendor name or employee name, depending on which command
> > button
> > > I'm using, instead of immediately taking me to the contract form and
pulling
> > up
> > > the information i've requested. I'm not sure what's wrong with my
argument.
> > >
> > > Thanks!
> > >
> > > Kat
> > >
> > > --- In MS_Access_Professionals@yahoogroups.com, "John Viescas" <john@>
wrote:
> > > >
> > > > Kat-
> > > >
> > > > You need to add an argument in the Where Condition of the OpenForm
action in
> > > > your macro. Depending on what you're filtering, it needs to look
something
> > > like
> > > > the filter in the Embedded Macro in the Find Vendor form.
> > > >
> > > > John Viescas, author
> > > > Microsoft Office Access 2010 Inside Out
> > > > Microsoft Office Access 2007 Inside Out
> > > > Building Microsoft Access Applications
> > > > Microsoft Office Access 2003 Inside Out
> > > > SQL Queries for Mere Mortals
> > > > http://www.viescas.com/
> > > > (Paris, France)
> > > >
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: MS_Access_Professionals@yahoogroups.com
> > > > [mailto:MS_Access_Professionals@yahoogroups.com] On Behalf Of
ka0t1c_ang3l
> > > > Sent: Tuesday, May 31, 2011 5:39 PM
> > > > To: MS_Access_Professionals@yahoogroups.com
> > > > Subject: Re: [MS_AccessPros] Open form using combo box and command
button
> > > >
> > > > John,
> > > >
> > > > Yes, I saw that, but what it should do is when you make a selection and
> > click
> > > on
> > > > the control button it should open up that record in the contract form,
but
> > > it's
> > > > not working. I'm not sure what I'm doing wrong, and the reason for the
> > error
> > > on
> > > > the dates is because I didn't put in a contract end date. How do I get
the
> > > > control button to work so that when I make a selection it opens up that
> > > record?
> > > >
> > > > Thanks!
> > > >
> > > > Kat
> > > >
> > > > --- In MS_Access_Professionals@yahoogroups.com, "John Viescas" <john@>
> > wrote:
> > > > >
> > > > > Kat-
> > > > >
> > > > > The Find Contract form doesn't apply *any* filter in either the Find
> > > Contract
> > > > or
> > > > > Employee Find macros. If I try to use one of your search buttons, I
get
> > an
> > > > > error in the Current event of Contract Form trying to subtract today's
> > date
> > > > from
> > > > > a contract that has no date.
> > > > >
> > > > > John Viescas, author
> > > > > Microsoft Office Access 2010 Inside Out
> > > > > Microsoft Office Access 2007 Inside Out
> > > > > Building Microsoft Access Applications
> > > > > Microsoft Office Access 2003 Inside Out
> > > > > SQL Queries for Mere Mortals
> > > > > http://www.viescas.com/
> > > > > (Paris, France)
> > > > >
> > > > >
> > > > >
> > > > > -----Original Message-----
> > > > > From: MS_Access_Professionals@yahoogroups.com
> > > > > [mailto:MS_Access_Professionals@yahoogroups.com] On Behalf Of
ka0t1c_ang3l
> > > > > Sent: Tuesday, May 31, 2011 4:17 PM
> > > > > To: MS_Access_Professionals@yahoogroups.com
> > > > > Subject: Re: [MS_AccessPros] Open form using combo box and command
button
> > > > >
> > > > > John -
> > > > >
> > > > > It's the Find Contract Form I'm having problems with. Each time I
select
> > a
> > > > > contract or employee name to find a contract it prompts me for either
the
> > > > vendor
> > > > > name. I have uploaded the database I'm currently using that has a few
of
> > my
> > > > > contracts already put in.
> > > > >
> > > > > Thanks!
> > > > >
> > > > > Kat
> > > > >
> > > > > --- In MS_Access_Professionals@yahoogroups.com, "John Viescas" <john@>
> > > wrote:
> > > > > >
> > > > > > Kat-
> > > > > >
> > > > > > I get no prompt at all when I use your Find Vendor form - after I
> > entered
> > > at
> > > > > > least one row in Vendor Information.
> > > > > >
> > > > > > John Viescas, author
> > > > > > Microsoft Office Access 2010 Inside Out
> > > > > > Microsoft Office Access 2007 Inside Out
> > > > > > Building Microsoft Access Applications
> > > > > > Microsoft Office Access 2003 Inside Out
> > > > > > SQL Queries for Mere Mortals
> > > > > > http://www.viescas.com/
> > > > > > (Paris, France)
> > > > > >
> > > > > >
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: MS_Access_Professionals@yahoogroups.com
> > > > > > [mailto:MS_Access_Professionals@yahoogroups.com] On Behalf Of
> > ka0t1c_ang3l
> > > > > > Sent: Tuesday, May 31, 2011 3:38 PM
> > > > > > To: MS_Access_Professionals@yahoogroups.com
> > > > > > Subject: Re: [MS_AccessPros] Open form using combo box and command
> > button
> > > > > >
> > > > > > Good Morning John,
> > > > > >
> > > > > > This is the SQL of the Record Source.....
> > > > > >
> > > > > > SELECT [VENDOR INFORMATION].[VENDOR NAME]
> > > > > > FROM [VENDOR INFORMATION]
> > > > > > ORDER BY [VENDOR INFORMATION].[VENDOR NAME];
> > > > > >
> > > > > > I have also uploaded a zipped file of my database under Kats Files
if
> > you
> > > > want
> > > > > > to look at it.
> > > > > >
> > > > > > Thanks!
> > > > > >
> > > > > > Kat
> > > > > >
> > > > > > --- In MS_Access_Professionals@yahoogroups.com, "John Viescas"
<john@>
> > > > wrote:
> > > > > > >
> > > > > > > Kat-
> > > > > > >
> > > > > > > What is the SQL of the Record Source of the form you're trying to
> > open?
> > > > > > >
> > > > > > > John Viescas, author
> > > > > > > Microsoft Office Access 2010 Inside Out
> > > > > > > Microsoft Office Access 2007 Inside Out
> > > > > > > Building Microsoft Access Applications
> > > > > > > Microsoft Office Access 2003 Inside Out
> > > > > > > SQL Queries for Mere Mortals
> > > > > > > http://www.viescas.com/
> > > > > > > (Paris, France)
> > > > > > >
> > > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: MS_Access_Professionals@yahoogroups.com
> > > > > > > [mailto:MS_Access_Professionals@yahoogroups.com] On Behalf Of
> > > ka0t1c_ang3l
> > > > > > > Sent: Friday, May 27, 2011 10:37 PM
> > > > > > > To: MS_Access_Professionals@yahoogroups.com
> > > > > > > Subject: [MS_AccessPros] Open form using combo box and command
button
> > > > > > >
> > > > > > > Hello all!
> > > > > > >
> > > > > > > I have a search form with several combo boxes and command buttons.
> > When
> > > I
> > > > > > click
> > > > > > > on the combo box and select a name I want to then click on the
command
> > > > > button
> > > > > > > which will open up my form based on the selection made in my combo
> > box.
> > > > > > > Currently, what is happening after I select a name in the combo
box
> > and
> > > > hit
> > > > > > the
> > > > > > > button is another box pops up asking me to enter the vendor name
> > again.
> > > > How
> > > > > > do
> > > > > > > I get rid of that and have the command button take me directly to
that
> > > > form
> > > > > to
> > > > > > > bring up the information selected for the vendor? Any help is
> > > appreciated
> > > > > it!
> > > > > > >
> > > > > > > Thanks!
> > > > > > >
> > > > > > > Kat
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ------------------------------------
> > > > > > >
> > > > > > > Yahoo! Groups Links
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ------------------------------------
> > > > > >
> > > > > > Yahoo! Groups Links
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ------------------------------------
> > > > >
> > > > > Yahoo! Groups Links
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > > ------------------------------------
> > > >
> > > > Yahoo! Groups Links
> > > >
> > >
> > >
> > >
> > >
> > > ------------------------------------
> > >
> > > Yahoo! Groups Links
> > >
> >
> >
> >
> >
> > ------------------------------------
> >
> > Yahoo! Groups Links
> >
>

------------------------------------

Yahoo! Groups Links

__._,_.___
Recent Activity:
.

__,_._,___

Bls: [belajar-access] Cancel Update Table [1 Attachment]

 
[Attachment(s) from Fajrie Shine included below]

Dear Mr. Sofyan

Ini file *.accdb nya pak,,,,
saat terjadi transaksi, jika transaksi di batalkan, nantinya akan ada pesan yang muncul, pesan untuk update tbl_ Barang, Jika milih No nantinya malah muncul debug
Mohon Bantuan untuk perbaikannya pak,,,,
Sekalian minta bantuannya untuk pembuatan form
hehehehe
sy gak bisa buat form seperti yang di inginkan
gambarannya saya sertakan bersama di dalam Attachment
Mohon Bantuannya pak untuk pembuatan formnya

Terimakasih



Dari: Sofyan Efendi <sofyanefendi@gmail.com>
Kepada: belajar-access@yahoogroups.com
Terkirim: Rab, 1 Juni, 2011 11:45:51
Judul: Re: [belajar-access] Cancel Update Table

 



Dear Mas Fajrie, pada:
 
& oldQty &
 
Apakah oldQty itu nama field di formnya? Adakah pesan errornya saat menjalankan query ini?
 
Wassalaamu'alaikum Warahmatullahi Wabarakatuh,
Sofyan Efendi.
http://opi.110mb.com/
----- Original Message -----
Sent: Wednesday, June 01, 2011 9:57 AM
Subject: [belajar-access] Cancel Update Table [1 Attachment]

 




Dear Master Access

Assallamu'alaikum WR.WB

Mohon Bantuannya lagi nih
untuk cancel update table/ undo record update table saat record di delete
vb saya seperti ini

Private Sub Form_AfterUpdate()
DoCmd.SetWarnings False
DoCmd.RunSQL "Update Tbl_Barang SET [Stok Keluar] = [Stok Keluar] + " & Me.Quantity_Barang & " - " & oldQty & " WHERE [KodeBarang] = '" & Me.cb_kode_barang & "'"
DoCmd.SetWarnings True
End Sub

Bagaimana caranya ya???
Terimakasih
Wassallamu'alaikum WR.WB





__._,_.___

Attachment(s) from Fajrie Shine

1 of 1 File(s)

Recent Activity:
SPAM IS PROHIBITED
.

__,_._,___

[belajar-access] Re: mematikan tombol dari form lain

 

That's right, harusnya ditambahkan "Form!", makasih koreksinya yah...

--- In belajar-access@yahoogroups.com, tio.adjie@... wrote:
>
> Mas Sofyan, ini tidak ditambahkan dari Forms![TRumah_Tangga_add]![Tnomor_KK_add]![NamaTextBox].SetFocus jadi Forms![TRumah_Tangga_add]![Tnomor_KK_add].Form![NamaTextBox].SetFocus ??
>
> regards,
> Tio
>
>
>
>
>
> "Sofyan Efendi" <sofyanefendi@...>
> Sent by: belajar-access@yahoogroups.com
> 06/01/2011 10:35 AM
> Please respond to belajar-access
>
>
> To: belajar-access@yahoogroups.com
> cc:
> Subject: [belajar-access] Re: mematikan tombol dari form lain
>
>
>
> Dear Mas Hadis,
>
> Focusnya diset dulu di object control yg lain, misal di subform tsb ada
> text box, maka pindahkan dulu sementara focusnya kesana.
>
> Forms![TRumah_Tangga_add]![Tnomor_KK_add]![NamaTextBox].SetFocus
> Forms![TRumah_Tangga_add]![Tnomor_KK_add]![CmTambahKK].Enabled = False
>
> Wassalaamu'alaikum Warahmatullahi Wabarakatuh,
> Sofyan Efendi.
> http://opi.110mb.com/
>
> --- In belajar-access@yahoogroups.com, "hadis0678" <hadis0678@> wrote:
> >
> > yang terhormat teman teman semua
> >
> > lanjut mas, kemudian kalau ingin mendisable tombol yang ada di sub form,
> dengan cara yang sama yang diberikan mas sofyan menjadi
> > Forms![TRumah_Tangga_add]![Tnomor_KK_add]![CmTambahKK].Enabled = False
> > dimna Tnomor_KK_add adalah subform dari TRumah_Tangga_add kemudian
> ketika dijalankan muncul komentar sebagai berikut :
> > You can't disable control it has the focus
> > apa yang salah dengan perintah saya ya mas.
> >
> > sebagai gambaran dalam form TRumah_Tangga_add terdapat subform
> TNomor_KK_add dan dalam TNomor_KK_add terdapat subform
> data_anggota_keluarga dan tiap subform terdapat tombol untuk menambah
> data.
> >
> > demikian permohonan bantuan saya, sebelumnya saya ucapkan terima kasih
> >
> >
> > best regards
> >
> > must hdi s
> >
> > --- In belajar-access@yahoogroups.com, "sudarsono" <jkssbma@> wrote:
> > >
> > >
> > > expression.OpenForm(FormName, View, FilterName, WhereCondition,
> > > DataMode, WindowMode, OpenArgs)
> > >
> > > openArgs akan digunakan oleh Form yang akan dibuka ,yaitu pada event
> > > open :
> > >
> > > me.OpenArgs ---> dapat dimanfatkan untuk membuat apa saja yang
> > > diinginkan , misal :
> > >
> > > form yang hanya untuk mencari data.
> > >
> > > misal saat memanggil form kita beri nilai ( parameter ke-7, openargs )
> > > "SEARCH", maka data tak dapat di tambah dan edit. Hal ini di cek pada
> > > event open, lalu cek niai me.openargs.
> > >
> > > semoga sesuai .....
> > >
> > > '============
> > > --- In belajar-access@yahoogroups.com, Sofyan Efendi <sofyanefendi@>
> > > wrote:
> > > >
> > > > Dear Mas Hadis,
> > > >
> > > > 1. Syntaxnya :
> > > Access_Object![Nama_Object]![Nama_Control].Nama_Property
> > > > Berarti tinggal ditambahkan kode :
> > > Forms![TRumah_Tangga_add]![CmTambahdata].Enabled =False
> > > > Maka tombol nya menjadi disable.
> > > >
> > > > 2. Sebelumnya saya hendak memberi saran dahulu, bahwa link table
> > > manager bawaaan Access sangatlah mencukupi kebutuhan kita. Bila karena
> > > masalah bahasa, hal tersebut bukan masalah. Hendaknya dalam membuat
> > > program kita tidak menggunakan cara yang sulit, sederhanakanlah,
> > > permudahlah, karena selama disana masih ada cara yang mudah maka
> > > janganlah membuang waktu untuk mengambil cara yang sulit. Bila Access
> > > sudah menyediakan link table manager, maka kita tidak perlu membuang
> > > waktu membuat sendiri form link table manager.
> > > >
> > > > Wassalaamu'alaikum Warahmatullahi Wabarakatuh,
> > > > Sofyan Efendi.
> > > > http://opi.110mb.com/
> > > > ----- Original Message -----
> > > > From: hadis0678
> > > > To: belajar-access@yahoogroups.com
> > > > Sent: Tuesday, May 31, 2011 5:30 AM
> > > > Subject: [belajar-access] mematikan tombol dari form lain
> > > >
> > > >
> > > >
> > > > met pagi sodara-sodara...
> > > >
> > > > sory kebiasaan jelek, nongol kalau nanya hehehhee..
> > > >
> > > > mohon bantuan rekan-rekan untuk masalah saya ini..
> > > >
> > > > 1. pengin mematikan tombol di form dari form lain
> > > > saya dah buka form dalam edit mode dengan perintah
> > > > Private Sub CmEdit_Click()
> > > > On Error GoTo Err_CmEdit_Click
> > > >
> > > > Dim stDocName As String
> > > > Dim stLinkCriteria As String
> > > >
> > > > stDocName = "TRumah_Tangga_add"
> > > > DoCmd.OpenForm stDocName, , , stLinkCriteria, acFormEdit
> > > >
> > > >
> > > > Exit_CmEdit_Click:
> > > > Exit Sub
> > > >
> > > > Err_CmEdit_Click:
> > > > MsgBox Err.Description
> > > > Resume Exit_CmEdit_Click
> > > >
> > > > End Sub
> > > >
> > > > kemudian di form TRumah_Tangga_add terdapat tombol CmTambahdata yang
> > > digunakan untuk menambah data. bagaimana caranya untuk mematikan
> tombol
> > > ini? (tahunya kalau pas diform yang bersangkutan, kalau dari form lain
> > > bagaimanakah)
> > > >
> > > > 2. link table manager..
> > > > ada gak ya vba untuk bikin link table selain menggunakan dari
> > > fasilitas file di acces (hehehehe biar bisa ada bahasa indonesianya)..
> > > >
> > > > terima kasih rekan-rekan atas bantuannya...
> > > >
> > > > best regards
> > > >
> > > > must hdi s
> > > >
> > >
> >
>

__._,_.___
Recent Activity:
SPAM IS PROHIBITED
.

__,_._,___

[belajar-access] Re: mematikan tombol dari form lain

 

terima kasih mas atas sarannya...
saran telah dilakukan dan berhasil, dengan cara saya membuat textbox (unbound)di form TNomor_KK_add dan kemudian textbox tersebut saya sembunyikan..

demikian mas atas bantuannya, terima kasih dan salam untuk keluarga

salam hormat,

must hdi s

--- In belajar-access@yahoogroups.com, tio.adjie@... wrote:
>
> Mas Sofyan, ini tidak ditambahkan dari Forms![TRumah_Tangga_add]![Tnomor_KK_add]![NamaTextBox].SetFocus jadi Forms![TRumah_Tangga_add]![Tnomor_KK_add].Form![NamaTextBox].SetFocus ??
>
> regards,
> Tio
>
>
>
>
>
> "Sofyan Efendi" <sofyanefendi@...>
> Sent by: belajar-access@yahoogroups.com
> 06/01/2011 10:35 AM
> Please respond to belajar-access
>
>
> To: belajar-access@yahoogroups.com
> cc:
> Subject: [belajar-access] Re: mematikan tombol dari form lain
>
>
>
> Dear Mas Hadis,
>
> Focusnya diset dulu di object control yg lain, misal di subform tsb ada
> text box, maka pindahkan dulu sementara focusnya kesana.
>
> Forms![TRumah_Tangga_add]![Tnomor_KK_add]![NamaTextBox].SetFocus
> Forms![TRumah_Tangga_add]![Tnomor_KK_add]![CmTambahKK].Enabled = False
>
> Wassalaamu'alaikum Warahmatullahi Wabarakatuh,
> Sofyan Efendi.
> http://opi.110mb.com/
>
> --- In belajar-access@yahoogroups.com, "hadis0678" <hadis0678@> wrote:
> >
> > yang terhormat teman teman semua
> >
> > lanjut mas, kemudian kalau ingin mendisable tombol yang ada di sub form,
> dengan cara yang sama yang diberikan mas sofyan menjadi
> > Forms![TRumah_Tangga_add]![Tnomor_KK_add]![CmTambahKK].Enabled = False
> > dimna Tnomor_KK_add adalah subform dari TRumah_Tangga_add kemudian
> ketika dijalankan muncul komentar sebagai berikut :
> > You can't disable control it has the focus
> > apa yang salah dengan perintah saya ya mas.
> >
> > sebagai gambaran dalam form TRumah_Tangga_add terdapat subform
> TNomor_KK_add dan dalam TNomor_KK_add terdapat subform
> data_anggota_keluarga dan tiap subform terdapat tombol untuk menambah
> data.
> >
> > demikian permohonan bantuan saya, sebelumnya saya ucapkan terima kasih
> >
> >
> > best regards
> >
> > must hdi s
> >
> > --- In belajar-access@yahoogroups.com, "sudarsono" <jkssbma@> wrote:
> > >
> > >
> > > expression.OpenForm(FormName, View, FilterName, WhereCondition,
> > > DataMode, WindowMode, OpenArgs)
> > >
> > > openArgs akan digunakan oleh Form yang akan dibuka ,yaitu pada event
> > > open :
> > >
> > > me.OpenArgs ---> dapat dimanfatkan untuk membuat apa saja yang
> > > diinginkan , misal :
> > >
> > > form yang hanya untuk mencari data.
> > >
> > > misal saat memanggil form kita beri nilai ( parameter ke-7, openargs )
> > > "SEARCH", maka data tak dapat di tambah dan edit. Hal ini di cek pada
> > > event open, lalu cek niai me.openargs.
> > >
> > > semoga sesuai .....
> > >
> > > '============
> > > --- In belajar-access@yahoogroups.com, Sofyan Efendi <sofyanefendi@>
> > > wrote:
> > > >
> > > > Dear Mas Hadis,
> > > >
> > > > 1. Syntaxnya :
> > > Access_Object![Nama_Object]![Nama_Control].Nama_Property
> > > > Berarti tinggal ditambahkan kode :
> > > Forms![TRumah_Tangga_add]![CmTambahdata].Enabled =False
> > > > Maka tombol nya menjadi disable.
> > > >
> > > > 2. Sebelumnya saya hendak memberi saran dahulu, bahwa link table
> > > manager bawaaan Access sangatlah mencukupi kebutuhan kita. Bila karena
> > > masalah bahasa, hal tersebut bukan masalah. Hendaknya dalam membuat
> > > program kita tidak menggunakan cara yang sulit, sederhanakanlah,
> > > permudahlah, karena selama disana masih ada cara yang mudah maka
> > > janganlah membuang waktu untuk mengambil cara yang sulit. Bila Access
> > > sudah menyediakan link table manager, maka kita tidak perlu membuang
> > > waktu membuat sendiri form link table manager.
> > > >
> > > > Wassalaamu'alaikum Warahmatullahi Wabarakatuh,
> > > > Sofyan Efendi.
> > > > http://opi.110mb.com/
> > > > ----- Original Message -----
> > > > From: hadis0678
> > > > To: belajar-access@yahoogroups.com
> > > > Sent: Tuesday, May 31, 2011 5:30 AM
> > > > Subject: [belajar-access] mematikan tombol dari form lain
> > > >
> > > >
> > > >
> > > > met pagi sodara-sodara...
> > > >
> > > > sory kebiasaan jelek, nongol kalau nanya hehehhee..
> > > >
> > > > mohon bantuan rekan-rekan untuk masalah saya ini..
> > > >
> > > > 1. pengin mematikan tombol di form dari form lain
> > > > saya dah buka form dalam edit mode dengan perintah
> > > > Private Sub CmEdit_Click()
> > > > On Error GoTo Err_CmEdit_Click
> > > >
> > > > Dim stDocName As String
> > > > Dim stLinkCriteria As String
> > > >
> > > > stDocName = "TRumah_Tangga_add"
> > > > DoCmd.OpenForm stDocName, , , stLinkCriteria, acFormEdit
> > > >
> > > >
> > > > Exit_CmEdit_Click:
> > > > Exit Sub
> > > >
> > > > Err_CmEdit_Click:
> > > > MsgBox Err.Description
> > > > Resume Exit_CmEdit_Click
> > > >
> > > > End Sub
> > > >
> > > > kemudian di form TRumah_Tangga_add terdapat tombol CmTambahdata yang
> > > digunakan untuk menambah data. bagaimana caranya untuk mematikan
> tombol
> > > ini? (tahunya kalau pas diform yang bersangkutan, kalau dari form lain
> > > bagaimanakah)
> > > >
> > > > 2. link table manager..
> > > > ada gak ya vba untuk bikin link table selain menggunakan dari
> > > fasilitas file di acces (hehehehe biar bisa ada bahasa indonesianya)..
> > > >
> > > > terima kasih rekan-rekan atas bantuannya...
> > > >
> > > > best regards
> > > >
> > > > must hdi s
> > > >
> > >
> >
>

__._,_.___
Recent Activity:
SPAM IS PROHIBITED
.

__,_._,___