15,890,973 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by ebie147 (Top 42 by date)
ebie147
31-Aug-16 13:16pm
View
recieving the following error:
Dim con As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\192.168.1.191\msa\CFS\MSA Program\CLIENT_DOCS.mdb")
Dim cmd As OleDbCommand = New OleDbCommand("SELECT b.REF, a.ID_RECIEVED, a.ID_DATE, A.POA, A.POA_DATE, b.CRED_NAME FROM Table2 b JOIN Table1 a ON a.REF = b.REF WHERE b.COB='YES' AND b.ACCEPTANCE='YES'", con)
con.Open()
Dim myDA As OleDbDataAdapter = New OleDbDataAdapter(cmd)
Dim myDataSet As DataSet = New DataSet()
myDA.Fill(myDataSet, "CLIENT_DOCS") <<
ebie147
31-Aug-16 12:42pm
View
i keep getting a 'Syntax error in FROM Clause'
heres my code
Dim con As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\192.168.1.191\msa\CFS\MSA Program\CLIENT_DOCS.mdb")
Dim cmd As OleDbCommand = New OleDbCommand("SELECT * FROM USER_FILES AS A JOIN Creditor_FILES AS B ON B.REF = A.Reference WHERE A.ID_Recieved = 'Yes' AND A.POA = 'Yes' AND B.COB = 'Yes' AND B.ACCEPTANCE = 'Yes'", con)
con.Open()
Dim myDA As OleDbDataAdapter = New OleDbDataAdapter(cmd)
Dim myDataSet As DataSet = New DataSet()
myDA.Fill(myDataSet, "CLIENT_DOCS") <<<<Where the error occures
DataGridView1.DataSource = myDataSet.Tables("CLIENT_DOCS").DefaultView
con.Close()
con = Nothing
ebie147
17-Aug-16 3:04am
View
I'm not to clued up with C# coding
ebie147
16-Aug-16 9:40am
View
ms access
ebie147
1-Jun-16 10:18am
View
basically i want this in a datagridview
-<enqcc_loans>
-<row num="1">
<date_due>2009/07/31</date_due>
<date_issued>2009/06/18 00:00</date_issued>
<install_amt>2636</install_amt>
<ref_no>1806091196847035</ref_no>
<tot_amt_repayable>25000</tot_amt_repayable>
<BRANCH_NAME>Capitec - Piet Retief</BRANCH_NAME>
<contact_person>The Manager</contact_person>
<telephone_number>TBA</telephone_number>
<status>Open</status>
</row>
</enqcc_loans>
ebie147
23-Jun-15 9:37am
View
that identifier won't be seen by them but it will be stored in the database, really need a way to get this working
ebie147
23-Jun-15 6:26am
View
so basically 3 or more people will be capturing data in a database, and it should automatically give them a reference, this reference should consist of a DR+ autonumber
ebie147
21-Jun-15 15:51pm
View
Hi will this help when working with database with 3 people working on it?
ebie147
2-Jun-15 10:20am
View
so how would i do this in Microsoft Access?
ebie147
2-Jun-15 10:16am
View
so for instance in table 2 i got the following
ID Number=12345
creditor1=test
Instalment1=123
creditor2= test1
instalment2=123
then i want those 2 instalments to add where the id number is 12345 in table 1 and insert it in table 1 where
total instalment=246
ebie147
2-Jun-15 10:12am
View
im using access 2010,
what i am trying to do is this
total Instalment(table1) = instalment amount(table2) where id Number =
note that instalment amount(table 2) consist of a lot of records
also the table has a relationship of one to many
so it should only add the instalment amount(table 2) where the id number matches the id number in table 1
ebie147
2-Jun-15 10:01am
View
what makes it hard is that it only needs to add the creditors installment for that id number of the person
ebie147
2-Jun-15 9:57am
View
i have played around but can't seem to come around to anything
ebie147
21-May-15 8:28am
View
OMG DUDE its working THANK You
what i did was add the [ ] by bank name and changed
cmd.Parameters.AddWithValue("IDNumber", txtvalueid.Tag)
to
cmd.Parameters.AddWithValue("IDNumber", txtvalueid.Text)
ebie147
21-May-15 8:23am
View
i have added the [ ] by bank names and now im getting this error:-
An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in System.Data.dll
Additional information: Parameter ?_29 has no default value.
ebie147
21-May-15 8:11am
View
Deleted
still getting same syntax error
ebie147
21-May-15 8:11am
View
still getting syntax error with the ? and with their parameter name
ebie147
21-May-15 8:03am
View
sql.Append("[Account Holder Name] = ?, Bank Name= ?, ")
sql.Append("[Account Type] = ?, [Account Number] = ?,")
sql.Append("[Branch Code]=?,[Gross Salary]=?,")
sql.Append("[Nett Salary]=?,[Spouse Gross]=?,")
sql.Append("[Spouse Nett]=?,[Total Income]=?,")
sql.Append("[Funeral Cover]=?,[Medical Aid]=?,")
sql.Append("[Life Insurance]=?,[Groceries]=?,")
i changed the "?" with their parameter name, is this correct or should i leave them as "?"
ebie147
21-May-15 7:58am
View
still receiving syntax error
An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in System.Data.dll
Additional information: Syntax error in UPDATE statement.
ebie147
21-May-15 7:46am
View
would sql work with oledb?
ebie147
21-May-15 7:42am
View
all columns are strings
ebie147
21-May-15 7:37am
View
yes some of them are empty but that shouldn't cause a syntax error? or am i wrong?
ebie147
21-May-15 7:16am
View
and this is what happens when i add the the [ ] around all the column names
An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in System.Data.dll
Additional information: Syntax error (missing operator) in query expression '',[Bank Name]='',[Account Type]='',[Account Number]='',[Branch Code]='',[Gross Salary]='',[Nett Salary]='',[Spouse Gross]='',[Spouse Nett]='',[Total Income]='',[Funeral Cover]='',[Medical Aid]='',[Life Insurance]='',[Groceries]='',[Rent/Bond]='',[School f'.
ebie147
21-May-15 7:12am
View
An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in System.Data.dll
Additional information: Syntax error (missing operator) in query expression '',Bank Name='',Account Type='',Account Number='',Branch Code='',Gross Salary='',Nett Salary='',Spouse Gross='',Spouse Nett='',Total Income='',Funeral Cover='',Medical Aid='',Life Insurance='',Groceries='',Rent/Bond='',School fees='',Transport='',Clothing='.
this is what comes up when i tried adding the [ ].
ebie147
21-May-15 6:57am
View
what do you mean by dump the command string? and no they all strings
ebie147
21-May-15 6:36am
View
here is the error i get:-
An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in System.Data.dll
Additional information: Syntax error in UPDATE statement.
ebie147
28-Mar-12 12:48pm
View
what you mean?
ebie147
27-Mar-12 4:29am
View
hi, whats your email maybe i can explain more in private?
ebie147
27-Mar-12 3:17am
View
heres an example of what the activation key gives me when i run the program
QkNBRUM1QkZDMkJBMDA1MDU2QzAwMDAxMDA1MDU2QzAwMDA4MDAwMDAwMDAwMDAwMDBFMA==
ebie147
26-Mar-12 16:53pm
View
Okay thanks, or it would help me alot
ebie147
26-Mar-12 15:45pm
View
so what you saying is that it gets a serial key from .Ini files , registry ,Private profile, and Mac Address(s)?
ebie147
26-Mar-12 14:43pm
View
from a user desktop, but now i need to create a program that can give the user a serial from the activation server
ebie147
26-Mar-12 14:16pm
View
I still dont understand what you mean, sorry i'm abit noob at coding still
can you explain in more simpler terms?
ebie147
26-Mar-12 13:17pm
View
so what how would you go around creating an activation for this serial?
ebie147
26-Mar-12 11:59am
View
yeah i know it takse your macs address and converts it, but to what is it converting to?
ebie147
26-Mar-12 10:49am
View
lol if i would want to crack his system then how would i have gotten the source code?
doesnt make sense now hey
ebie147
26-Mar-12 10:45am
View
are you going to tell me or not?
ebie147
26-Mar-12 10:45am
View
he said i should figure it out...
ebie147
26-Mar-12 10:37am
View
Hi
the reason why i want it, is because me and a friend was busy with an activation project, he added the following activation and gave me a serial key with it, now I'd like to know how he got it, because i don't seem to get it(im still noob at programming) thats the reason why i need to know
ebie147
26-Mar-12 10:18am
View
Public Function base64Encode(ByVal sData As String) As String
Try
Dim encData_byte As Byte() = New Byte(sData.Length - 1) {}
encData_byte = System.Text.Encoding.UTF8.GetBytes(sData)
Dim encodedData As String = Convert.ToBase64String(encData_byte)
Return (encodedData)
Catch ex As Exception
Throw (New Exception("Error in base64Encode " & ex.Message))
End Try
End Function
Public Function base64Decode(ByVal sData As String) As String
Try
Dim encoder As New System.Text.UTF8Encoding()
Dim utf8Decode As System.Text.Decoder = encoder.GetDecoder()
Dim todecode_byte As Byte() = Convert.FromBase64String(sData)
Dim charCount As Integer = utf8Decode.GetCharCount(todecode_byte, 0, todecode_byte.Length)
Dim decoded_char As Char() = New Char(charCount - 1) {}
utf8Decode.GetChars(todecode_byte, 0, todecode_byte.Length, decoded_char, 0)
Dim result As String = New [String](decoded_char)
Return (result)
Catch ex As Exception
Throw (New Exception("Error in base64Decode " & ex.Message))
End Try
End Function
ebie147
26-Mar-12 10:18am
View
i hope that will help?
ebie147
26-Mar-12 10:17am
View
Public Function base64Encode(ByVal sData As String) As String
Try
Dim encData_byte As Byte() = New Byte(sData.Length - 1) {}
encData_byte = System.Text.Encoding.UTF8.GetBytes(sData)
Dim encodedData As String = Convert.ToBase64String(encData_byte)
Return (encodedData)
Catch ex As Exception
Throw (New Exception("Error in base64Encode " & ex.Message))
End Try
End Function
Public Function base64Decode(ByVal sData As String) As String
Try
Dim encoder As New System.Text.UTF8Encoding()
Dim utf8Decode As System.Text.Decoder = encoder.GetDecoder()
Dim todecode_byte As Byte() = Convert.FromBase64String(sData)
Dim charCount As Integer = utf8Decode.GetCharCount(todecode_byte, 0, todecode_byte.Length)
Dim decoded_char As Char() = New Char(charCount - 1) {}
utf8Decode.GetChars(todecode_byte, 0, todecode_byte.Length, decoded_char, 0)
Dim result As String = New [String](decoded_char)
Return (result)
Catch ex As Exception
Throw (New Exception("Error in base64Decode " & ex.Message))
End Try
End Function
Show More