Jumat, 30 November 2012

[MS_AccessPros] Re: Using UPDATE to change data in a table via combobox and command button

 

Ahh, okay. Thanks John. I don't get the error anymore, but it doesn't actually change the value if the status field to A for those tickets. Very weird.

And ticket is a numeric field FYI.

Here is what the code looks like now:

Private Sub commandVoid_Click()

Dim strSQL As String

If MsgBox("Are you sure you want to void this ticket?", vbYesNo) = vbYes Then
strSQL = "UPDATE tableWarehouseData " & _
"SET Status = '" & V & "' " & _
"WHERE Ticket = " & Me.comboVoidTicket
End If
End Sub

--- In MS_Access_Professionals@yahoogroups.com, John Viescas <JohnV@...> wrote:
>
> Tony-
>
> Your quotes are all messed up. Try this:
>
> strSQL = "UPDATE tableWarehouseData " & _
> "SET Status = '" & V & "' " & _
> "WHERE ticket = '" & Me.comboVoidTicket & "'"
>
>
> That assumes that ticket is a text field. If not, then do:
>
> strSQL = "UPDATE tableWarehouseData " & _
> "SET Status = '" & V & "' " & _
> "WHERE ticket = " & Me.comboVoidTicket
>
> John Viescas, Author
> Microsoft Access 2010 Inside Out
> Microsoft Access 2007 Inside Out
> Microsoft Access 2003 Inside Out
> Building Microsoft Access Applications
> SQL Queries for Mere Mortals
> http://www.viescas.com/
> (Paris, France)
>
>
>
>
>
>
> -----Original Message-----
> From: Gkillah36 <GKillah36@...>
> Reply-To: <MS_Access_Professionals@yahoogroups.com>
> Date: Friday, November 30, 2012 6:17 AM
> To: <MS_Access_Professionals@yahoogroups.com>
> Subject: Re: [MS_AccessPros] Using UPDATE to change data in a table via
> combobox and command button
>
> V just comes from me. I just want to have all of the Status field values
> change to V for the ticket that the user selects. The Status field is
> text.
>
> Thanks,
> Tony
>
>
>
>
>
>
>
> -----Original Message-----
> From: Duane Hookom <duanehookom@...>
> To: Access Professionals Yahoo Group
> <ms_access_professionals@yahoogroups.com>
> Sent: Fri, Nov 30, 2012 12:15 am
> Subject: RE: [MS_AccessPros] Using UPDATE to change data in a table via
> combobox and command button
>
>
>
>
>
> Where does V come from? Is the Status field text or numeric?
>
> Learn how to implement
> Debug.Print strSQL
> So you can troubleshoot on your own.
>
> Duane Hookom MVP
> MS Access
>
> > From: GKillah36@...
> >
> > Hi all,
> >
> > Please see my VB below:
> >
> > Private Sub commandVoid_Click()
> >
> > Dim strSQL As String
> >
> > If MsgBox("Are you sure you want to void this ticket?", vbYesNo) = vbYes
> >Then
> > strSQL = "UPDATE tableWarehouseData " & _
> > "SET Status = " & V & " " & _
> > "WHERE ticket = " & Me.comboVoidTicket & ""
> > CurrentDb.Execute strSQL, dbFailOnError
> > End If
> > End Sub
> >
> >
> > ----------------------------------------
> >
> > This should change the Status field of all tickets in the table
> >tableWarehouseData to V when clicked based on the selected ticket number
> >in the comboVoidTicket combobox. However, I'm getting an error of
> >"Run-time error '3144': Syntax error in UPDATE statement." What am I
> >missing here?
> >
> > Thank you,
> > Tony
> >
> > FYI, I'm using Access 2010.
>
>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (5)
Recent Activity:
.

__,_._,___

RE: [MS_AccessPros] Timer

 

John,

Well I guess that is bad news and good news. I was hoping for some type of
"Clock" function. The good news is that it can still be done. Your
question at the end of your email made me laugh. Absolutely I will need
help writing that code! Anything you can send my way would be great.

Thanks,

Bill Singer

From: MS_Access_Professionals@yahoogroups.com
[mailto:MS_Access_Professionals@yahoogroups.com] On Behalf Of John Viescas
Sent: Friday, November 30, 2012 9:59 AM
To: MS_Access_Professionals@yahoogroups.com
Subject: Re: [MS_AccessPros] Timer

Bill-

If you just want a digital countdown, you can build your own with a Text
Box and the Timer event. Enter the total time you want to start at in the
text box, then click a Start button. Code behind the Start button would
then set the form's TimerInterval property to 1000 (1000 milliseconds = 1
second) to start the clock. In your On Timer event procedure, subtract 1
second from the clock value. You could also provide a Pause button (set
TimerInterval to 0 to stop it from firing) and a Stop button (set
TimerInterval to 0 and set the Text Box to 0). Need some help writing the
code?

The other alternative is to search for a clock or countdown ActiveX
control on the web.

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

-----Original Message-----
From: Bill Singer <Bill.Singer@at-group.net
<mailto:Bill.Singer%40at-group.net> >
Reply-To: <MS_Access_Professionals@yahoogroups.com
<mailto:MS_Access_Professionals%40yahoogroups.com> >
Date: Friday, November 30, 2012 4:32 PM
To: <MS_Access_Professionals@yahoogroups.com
<mailto:MS_Access_Professionals%40yahoogroups.com> >
Subject: [MS_AccessPros] Timer

I am wondering if access has a clock function or something that would work
like a game clock in a football game. I want to set the time, click the
start button and then have the clock start counting down.

Thanks,

Bill

MN

[Non-text portions of this message have been removed]

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

Yahoo! Groups Links

[Non-text portions of this message have been removed]

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (3)
Recent Activity:
.

__,_._,___

Re: [MS_AccessPros] Timer

 

Bill-

If you just want a digital countdown, you can build your own with a Text
Box and the Timer event. Enter the total time you want to start at in the
text box, then click a Start button. Code behind the Start button would
then set the form's TimerInterval property to 1000 (1000 milliseconds = 1
second) to start the clock. In your On Timer event procedure, subtract 1
second from the clock value. You could also provide a Pause button (set
TimerInterval to 0 to stop it from firing) and a Stop button (set
TimerInterval to 0 and set the Text Box to 0). Need some help writing the
code?

The other alternative is to search for a clock or countdown ActiveX
control on the web.

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

-----Original Message-----
From: Bill Singer <Bill.Singer@at-group.net>
Reply-To: <MS_Access_Professionals@yahoogroups.com>
Date: Friday, November 30, 2012 4:32 PM
To: <MS_Access_Professionals@yahoogroups.com>
Subject: [MS_AccessPros] Timer

I am wondering if access has a clock function or something that would work
like a game clock in a football game. I want to set the time, click the
start button and then have the clock start counting down.

Thanks,

Bill

MN

[Non-text portions of this message have been removed]

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

Yahoo! Groups Links

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (2)
Recent Activity:
.

__,_._,___

[MS_AccessPros] Timer

 



I am wondering if access has a clock function or something that would work
like a game clock in a football game. I want to set the time, click the
start button and then have the clock start counting down.

Thanks,

Bill

MN

[Non-text portions of this message have been removed]

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)
Recent Activity:
.

__,_._,___

[belajar-access] kombinasi 5 huruf menjadi 4 digit

 

mas, kalo mau kombinasi 5 huruf ABCDE menjadi 4 digit, ada brapa kemungkinan, mis: ABCD ABCE ABDE dst? trims

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)
Recent Activity:
SPAM IS PROHIBITED
.

__,_._,___

RE: Bls: [belajar-access] sharing ttg aplikasi surat jalan

 

Bisa saja mas dilengkapi sambil jalan pada form buat surat jalan,  kan di sana ada combo box untuk pilihan. takutnya data yang ada hubungan nya dengan data master di excel nanti tidak konsisten. silakan di coba dahulu. Nanti kirim kemari lagi hasilnya.  

 

Biasanya sih yang kami lakukan kolaborasi dengan data excel, hanya pertama kali insert data master barang. Karena biasanya data ini ribuan item dan jika di entry manual membutuhkan waktu yang sangat lama. Sehingga jika mau implementasi suatu aplikasi bisa mempersingkat waktu. Tetapi jika memasuki entry transaksi ya harus menjalankannya melalui aplikasi. Tidak di by pass melalui insert by query. Demikian masih semangat kan.

 

Salam,

 

Sumiyanto Surabaya

 

http://cakyanto.wordpress.com/

http://mugi.or.id/blogs/sumiyanto/

From: belajar-access@yahoogroups.com [mailto:belajar-access@yahoogroups.com] On Behalf Of Muhamad Safei
Sent: Friday, November 30, 2012 3:25 PM
To: belajar-access@yahoogroups.com
Subject: Bls: Bls: [belajar-access] sharing ttg aplikasi surat jalan

 

harus persis sama ya mas?? kl kita buat fieldnya sama tapi bbrpa datanya dikosongkan bisa tidakk ya.misalnya kita hanya mengisi kpdIdnya saja atau kodebarangnya saja..sementara filed kepada1-kepada4 kita ambil dari tabel master,begitu juga untuk kode barang... bisa tidak ya??

 

 

Thnks atas jawabannya...

 

 


Dari: Sumiyanto Surabaya <sumiyanto@live.com>
Kepada: belajar-access@yahoogroups.com
Dikirim: Jumat, 30 November 2012 6:53
Judul: RE: Bls: [belajar-access] sharing ttg aplikasi surat jalan

 

 

 

 

Lengkap mungkin tidak bisa mas, karena field table hasil import excel tidak sama persis seperti table TblRptCetakSuratJalan seperti gambar diatas

 

Ini query append yang bisa dilakukan;

 

INSERT INTO tblRptCetakSuratJalan ( Tgl, NoPol, sopir, DONo, PONo, SONo, Banyaknya )

SELECT NamaTabel.Tanggal, NamaTabel.NoPol, NamaTabel.Supir, NamaTabel.NoDo, NamaTabel.NoPo, NamaTabel.NoSo, NamaTabel.Qty

FROM NamaTabel;

 

Mungkin hasil query ini solusinya bisa di edit/dilengkapi pada form buat surat jalan, atau menambahkan data pada excel nya, sehingga pada saat di import ke table baru dan di insert akan sesuai.

 

Salam jabat erat selalu dan semoga memberi semangat, meminjam salamnya bang Edy dan cak Hariyanto

 

Sumiyanto Surabaya

 

 

 

 

 

 

From: belajar-access@yahoogroups.com [mailto:belajar-access@yahoogroups.com] On Behalf Of Muhamad Safei
Sent: Thursday, November 29, 2012 10:09 AM
To: belajar-access@yahoogroups.com
Subject: Re: Bls: [belajar-access] sharing ttg aplikasi surat jalan

 

 

Insert ke TblRptCetakSuratJalan pak.bagaimana cra insert update ketabelnya.dan apakah bisa data yg ditampilkan pada tblrptcetaksuratjalan lengkap seprti data sebelumnya??krn tbl trsbt menJadi source uk cetak surat jalan..

Sent from my BlackBerry®
powered by Sinyal Kuat INDOSAT


From: Sumiyanto Surabaya <sumiyanto@yahoo.com>

Sender: belajar-access@yahoogroups.com

Date: Wed, 28 Nov 2012 16:35:42 -0800 (PST)

To: belajar-access@yahoogroups.com<belajar-access@yahoogroups.com>

ReplyTo: belajar-access@yahoogroups.com

Subject: Re: Bls: [belajar-access] sharing ttg aplikasi surat jalan

 

 

Function tersebut hanya meng-import data dari excel, jadi hanya membuat table baru. jadi belum di jadikan sumber data object manapun. nah mungkin bapak bisa menjelaskan, setelah terbentuk table baru ini, mau di insertkan ke table mana.

di sana kan ada tblTrSuratJalan, dan tblRptCetakSuratJalan. baru nanti kita buat query insert/update.

 

 

Thank you | Terima Kasih | Matur Suksema

Sumiyanto

 


From: Muhamad Safei <safeimuhamad@yahoo.com>
To: "belajar-access@yahoogroups.com" <belajar-access@yahoogroups.com>
Sent: Wednesday, 28 November 2012 2:33 PM
Subject: Bls: [belajar-access] sharing ttg aplikasi surat jalan

 

 

Apakah perlu ada perubahan pada tabel databasenya??

 

 



 

 

 

 


Dari: Sumiyanto Surabaya <sumiyanto@live.com>
Kepada: belajar-access@yahoogroups.com
Dikirim: Rabu, 28 November 2012 9:14
Judul: RE: [belajar-access] sharing ttg aplikasi surat jalan

 

 

Karena menggunakan access 2003, bisa di save as data excelnya  ke 2003 juga (data unk import.xls) kemudian jalankan prosedur import data excel sbb;

 

Private Sub Command3_Click()

 

'sesuaikan nama table dan lokasi path data excelnya

DoCmd.TransferSpreadsheet acImport, _

acSpreadsheetTypeExcel8, _

"NamaTabel", _

"C:\Documents and Settings\Yanto\My Documents\Downloads\Compressed\SiSuJa\SiSuJa\data unk import.xls", _

True

 

MsgBox "import DATA excel finish", _

vbOKOnly, "Import"

 

End Sub

 

 

Salam,

 

Sumiyanto Surabaya

 

 

 

 

From: belajar-access@yahoogroups.com [mailto:belajar-access@yahoogroups.com] On Behalf Of Muhamad Safei
Sent: Tuesday, November 27, 2012 9:44 AM
To: belajar-access@yahoogroups.com
Subject: [belajar-access] sharing ttg aplikasi surat jalan [1 Attachment]

 

 

[Attachment(s) from Muhamad Safei included below]

slamt pagi semuanya..saya ada aplikasi surat jalan..saya akan menambahkan menu untuk import untuk memasukan data agar bisa langsung dari excel,tanpa input satu2...mohon masukannya...langkah2 apa saja yang mesti saya lakukan...thnks...file terlampir...

 

 





  

 

 

 

 

 

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (8)
Recent Activity:
SPAM IS PROHIBITED
.

__,_._,___

RE: [MS_AccessPros] Error Message - 'Not a valid name'

 

To use a spreadsheet as a data source in Access, you will have a linked
table. When the linked table was set up it looks like it was linked to a
worksheet named StatsDoctored. It is possible that the exporting application
is not naming the worksheet with that name.

Glenn

From: MS_Access_Professionals@yahoogroups.com
[mailto:MS_Access_Professionals@yahoogroups.com] On Behalf Of Robin Chapple
Sent: November-30-12 1:13 AM
To: MS_Access_Professionals@yahoogroups.com
Subject: [MS_AccessPros] Error Message - 'Not a valid name'

I have a problem with a database which uses a spreadsheet as the data
source. The spreadsheet is generated by our web site statistical
package. The Access queries and reports have been in use for about three
years.

Currently I see an error report on some queries:

" 'StatsDoctored$' is not a valid name. "

None of the objects has a name even close to that.

A search of the spreadsheet did not find the name.

Where do I look?

Many thanks,

Robin Chapple

[Non-text portions of this message have been removed]

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (3)
Recent Activity:
.

__,_._,___