473,395 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

will anyone check my coding?

suriacute85
Option Compare Database

Private Sub BtnAddLine1_Click()
Set db = CurrentDb
Set t = db.OpenRecordset("T_LogEntry")
t.Index = "NoInvois"
t.Seek "=", TxtNoInvois
If t.NoMatch Then
t.AddNew
t.NoInvois = TxtNoInvois
t.NoLori = cmdNoLori
t.TarikhHantar = TxtHantar
t.Kawasan = TxtKwsn
t.Update
TxtNoInvois = ""
Else
MsgBox "Invoice No already exist", 16, "Invoice No exist"""
End If
End Sub

Private Sub btnQuit_Click()
DoCmd.OpenForm "F_MAIN"
DoCmd.Close acForm, "F_Entry"
End Sub

Private Sub BtnSave_Click()
Set db = CurrentDb
Set t = db.OpenRecordset("T_EntryData")

// i want to save all the data, append from T_LogEntry to T_EntryData. after that delete all the records in T_LogEntry//


DoCmd.Run append Query to ("T_EntryData")
DoCmd.Run delete Query ("T_LogEntry")

End Sub
Aug 15 '07 #1
1 1137
Rabbit
12,516 Expert Mod 8TB
My question is why do you have the intermediary table?
Aug 20 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

102
by: RFox | last post by:
I date back to the early days of the web when HTML was limited but very managable, and have always maintained that hand-coding HTML gives you far better control and cleaner HTML markup than any...
7
by: Tony Johnson | last post by:
Can you make a check box very big? It seems like when you drag it bigger the little check is still the same size. Thank you, *** Sent via Developersdex http://www.developersdex.com ***...
7
by: Skc | last post by:
Hullo Just like to check whether anyone has tried RentACoder. I intend to farm out a small job that must use C#, WinForms, ADO.Net for around US$400, but don't know whether RentACoder is...
0
by: Agnes | last post by:
My problem is delete a row in Datagird , and then process "daTable.update(dsTable,myTable)" I got a seroius error This row had been removed from the table .. etc.....BeginEdit() will allow...
7
by: MLH | last post by:
Would love to be able to click on any If-statement and launch a utility that would find what A97 believes to be its corresponding EndIf. Such a tool would save me lots of time as I am forever...
4
by: Rob R. Ainscough | last post by:
The task is brain dead simple - Uninstall prior Windows Service and Install newer version of Windows Service Background: 1. My Windows Service written in .NET 1.1 and deployed via MSI (Windows...
0
ak1dnar
by: ak1dnar | last post by:
Hi, I am developing a web site that displays Products, and along with each products there is a Button.There is a <DIV> in my page to display Number of Products Added to the Basket. Items : 0 ...
27
kcdoell
by: kcdoell | last post by:
Hello: I am a newbie with Java coding... I have a form that I created in Word. Within that form it had a place where the user could selected certain states or all states via a checkbox. I used...
18
by: Constantine AI | last post by:
Hi i have some details below and i want to update the table by inputting the values where i have detailed 'Blank'. OrderNo StkID StkShortDesc Qty Price 28 Blank 300 DL 1 Blank 28 Blank 600 SA...
0
by: readnlearn | last post by:
hai, i have written this below code for displaying captcha image whenever i entered incorrect uname,password in login page. for that i disable the controls of captcha like textbox,labels,button and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.