Click here to Skip to main content
15,891,184 members
Home / Discussions / Database
   

Database

 
Questionconnecting to sql 2005 express using vb2005 Pin
Michelle Shoniwa7-Nov-08 1:08
Michelle Shoniwa7-Nov-08 1:08 
AnswerRe: connecting to sql 2005 express using vb2005 Pin
Vimalsoft(Pty) Ltd7-Nov-08 1:35
professionalVimalsoft(Pty) Ltd7-Nov-08 1:35 
QuestionRestrict access to the database Pin
iamdking6-Nov-08 19:28
iamdking6-Nov-08 19:28 
AnswerRe: Restrict access to the database Pin
Ashfield6-Nov-08 20:54
Ashfield6-Nov-08 20:54 
AnswerRe: Restrict access to the database Pin
Wendelius7-Nov-08 7:43
mentorWendelius7-Nov-08 7:43 
QuestionExport of a CSV file loses second decimal place... Pin
new_phoenix6-Nov-08 4:38
new_phoenix6-Nov-08 4:38 
AnswerRe: Export of a CSV file loses second decimal place... Pin
riced6-Nov-08 5:36
riced6-Nov-08 5:36 
GeneralRe: Export of a CSV file loses second decimal place... Pin
new_phoenix6-Nov-08 7:14
new_phoenix6-Nov-08 7:14 
Correct. When I put the cursor in the cell, it shows the value as being stored in the cell as .72 but it only displays .7. However, when I manually format it using "Number" with "2" decimal places, it shows the full value.

If I open the CSV file and use the AutoSum feature, the aggregate total does not match the original data file. From this effect, I can conclude that it is not really being used in the calculation properly. To that end, I need to programmatically save the value as if I were manually sitting there in the middle of the code and applying the "Format > Cells" and "Number" with "2" decimal places. How can this be done?

Here is some code.
strAggregateGroupFileName1 = "qryAggregationMatching"
strAggregateGroupSQLString1 = "SELECT tblGroupGLCodeMapping.GL_CODE, " & _
    "tblGroupGLCodeMapping.GL_CATEGORY, tblInputGroupFile.GL_AMOUNT " & _
    "FROM tblGroupGLCodeMapping INNER JOIN tblInputGroupFile " & _
    "ON tblGroupGLCodeMapping.GL_CODE = tblInputGroupFile.GL_CODE"
Set qdfLinkedTables = dbsBalanceSheet.CreateQueryDef(strAggregateGroupFileName1, _
    strAggregateGroupSQLString1)


The code should probably go around: tblInputGroupFile.GL_AMOUNT
GeneralRe: Export of a CSV file loses second decimal place... Pin
Ashfield6-Nov-08 20:56
Ashfield6-Nov-08 20:56 
GeneralRe: Export of a CSV file loses second decimal place... Pin
new_phoenix7-Nov-08 4:16
new_phoenix7-Nov-08 4:16 
GeneralRe: Export of a CSV file loses second decimal place... Pin
Ashfield7-Nov-08 8:56
Ashfield7-Nov-08 8:56 
GeneralRe: Export of a CSV file loses second decimal place... Pin
new_phoenix7-Nov-08 10:45
new_phoenix7-Nov-08 10:45 
GeneralRe: Export of a CSV file loses second decimal place... Pin
Ashfield9-Nov-08 20:08
Ashfield9-Nov-08 20:08 
GeneralRe: Export of a CSV file loses second decimal place... Pin
new_phoenix7-Nov-08 8:03
new_phoenix7-Nov-08 8:03 
GeneralRe: Export of a CSV file loses second decimal place... Pin
Ashfield7-Nov-08 8:59
Ashfield7-Nov-08 8:59 
GeneralRe: Export of a CSV file loses second decimal place... Pin
riced8-Nov-08 1:37
riced8-Nov-08 1:37 
Question[Message Deleted] Pin
siyapatel6-Nov-08 3:24
siyapatel6-Nov-08 3:24 
AnswerRe: Select Data Pin
Blue_Boy6-Nov-08 3:30
Blue_Boy6-Nov-08 3:30 
General[Message Deleted] Pin
siyapatel6-Nov-08 3:36
siyapatel6-Nov-08 3:36 
GeneralRe: Select Data Pin
Ben Fair7-Nov-08 6:02
Ben Fair7-Nov-08 6:02 
RantRe: [Message Deleted] Pin
Wendelius7-Nov-08 6:50
mentorWendelius7-Nov-08 6:50 
GeneralRe: [Message Deleted] Pin
Paul Conrad7-Nov-08 11:03
professionalPaul Conrad7-Nov-08 11:03 
GeneralRe: [Message Deleted] Pin
Wendelius7-Nov-08 20:29
mentorWendelius7-Nov-08 20:29 
AnswerRe: [Message Deleted] Pin
Paul Conrad7-Nov-08 11:02
professionalPaul Conrad7-Nov-08 11:02 
QuestionChanging Datatype of columns Pin
Sunil_Botre6-Nov-08 1:41
Sunil_Botre6-Nov-08 1:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.