VS 2008 CR Not Finding Datafile?

May 14, 2010

I have a problem that I�m sure will not be hard to fix for anyone who has been using CR for some time.

To start I have created a program in VB2008 that uses a MS Access data file, I can connect to it with no problem and can also add data and amend data, so all seems to work perfectly. I have published it and it once again runs perfectly on another/s machines.I have now a requirement for a number of reports so have chosen CR for this purpose. I have connected the report to the database and that runs with no problems at all, that is until I try to run it on another machine, it seems not to be able to find the database and comes up with a database Login panel wanting me to log in with a password and Admin name.

I feel it's properly a problem with the path to the database but if I modify the path manually it still won't work.

View 1 Replies


ADVERTISEMENT

Retrieved From The Datafile?

Nov 11, 2010

so im trying to do this project, and it gives me a a data file, and asks me to use stream reader to put it in the combobox, and when i click the selected items from the combo box, it fills in the textbox's with other information i retrieved from the datafile...Does anybody know the solution?? heres what i have so far(option strict must be on) Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

[Code]...

this gets all the Item names from the data file to appear on the combobox... now if i knew how to get the other information to appear in the textbox's when i clicked on it,

View 4 Replies

Fill An Array With A Datafile With Spacers In It?

Jul 19, 2009

I've made a program that calculates the costs of a transport, wich to my own surprice works. Because the prices vary with the weight of the transport, extra services and delivery within the 3 countries of the Benelux (Belgium, The Netherlands and Luxemburg), I use an array. The array is filled with data from a textfile (in this case not *.txt but *.prc). The data in the datafile is presented as follows :

[Code]...

View 1 Replies

StreamWriter Add Row To Text File DataFile?

Sep 26, 2011

I need to add a row of data to an exisitng TextFile that is in Tba delimited format. My program currently used ADO to read and update the table but that was creating to many problems with varying 3rd party providers of the Text File.

View 14 Replies

VS 2005 Create A Chart .txt Datafile?

Mar 13, 2011

I am looking at trying to make a chart from my data I am retriving form a 3rd part textfile datafile

I am reading on report viewer, but so far everything i see references using an exisitng database, my database will be created at run time

I create datatables uisng OleDb connection and bindingsources to comboboxes and textboxes for display of data

I just need a simple x/y scattered chart/graph

View 1 Replies

VS 2005 Add Record Text DataFile Database

Jan 2, 2011

I am inserting a record to a text file database using OleDb command Builder I am getting an error in one the fields could not insert .... expect type is decimal The problem is the column contains a mixture of Letter and numbers Ex:

[Code]...

View 18 Replies

Attachment - .net Attached Datafile .mdf Data Displayed Runtime?

Mar 7, 2012

I am using a VB.net application connected with a .mdf database file.The application is running successfully, and when I try to insert records its accepted.Everytime I close and reopen the application, new records from previous run disappear. This happens inside the VS IDE when I'm testing it.

View 2 Replies

VS 2008 Checkedlistbox Not Finding

Mar 19, 2009

What i got is a checkedlistbox with a list of text files, iam trying to search thru the text file and add to a listbox, my code works, But from 2 Txt files its returning 2 found and each txt file has 5 lines with excat names.

[Code]....

View 7 Replies

VS 2008 Finding And Returning A Value From String?

Sep 21, 2009

G:DevelopmentDOT NET DevColony_4ImagesBattenhallAve_Plan.bmpand i want to find and return the value after the last '' for example in the string above i would want to return:BattenhallAve_Plan.bmp

View 5 Replies

VS 2008 - Finding Last Latter Of Selected Path

Jun 19, 2010

I have FolderBrowserDialog1, how do I find the last latter of FolderBrowserDialog1.SelectedPath?

View 1 Replies

VS 2008 : Finding Primes Within A Range?

Dec 4, 2010

I am attempting to calculate a range of prime numbers determined by two user inputs (textboxes) I have the following code, but it displays nothing but zeros in the multiline textbox. I just need a bit of guidance here as to what is causing my code to show nothing but zeros.

Public Class PrimeNumbers
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim lowBound As Double
Dim upBound As Double

[code]....

View 3 Replies

VS 2008 : Finding The Sum Of The Data In A Column?

Oct 15, 2009

I'm connected to an access database using VB 2008.. there is information already located in the tables. But what I am looking to do, is find the "SUM" of all the data in a certain column.

View 35 Replies

VS 2008 Finding A Memory Leak?

Jan 1, 2010

I'm trying to work out a bit of a memory leak and was hoping someone can assist. The below program is running fine except for one thing. 1. The memory leak. When I run the program and watch task manager, I can see the memory usage of the program starts at roughly 14 meg. Over a period of hours, that increases pretty substantially. Eg. at 6am this morning, it was at 14 meg, and by 3pm it was at 36 meg.In a nutshell this program takes an incoming stream of data which looks like this.

MSG,3,51,350,461D3B,1427,2007/02/24,10:58:35.441,2007/02/24,11:03:35.829,,33975,,,53.82440,10.19830,,,0,0,0,0
MSG,3,51,673,44CE6D,1429,2007/02/24,10:58:35.098,2007/02/24,11:03:35.829,,39000,,,53.87798,9.88422,,,0,0,0,0
MSG,3,51,350,461D3B,1427,2007/02/24,10:58:35.848,2007/02/24,11:03:36.829,,33975,,,53.82353,10.19696,,,0,0,0,0

It basically parses the stream and places items into hash tables depending on the type of data. Eg. I have a hash table for latitude, one for longitude, one for altitude, etc.The key is always the hex code eg. in the first line above the key would be 461D3B.Essentially, as the data arrives in and is parsed and placed into hash tables depending on the type of data, I also have another hash table dedicated to keeping track of timeout times for that individual piece of data. The timer event fires and if the timeout is exceeded for that piece of data then it gets removed from all the hash tables.

I believe this is working. I've done heaps of debug output to the output window ensuring that items are being added to and removed from the hash tables successfully. Eg. ensuring that the hash table record count matches what I believe the number of active records should be.I'm at a loss what could be causing this memory leak though. I'm assuming i'm not disposing of an object properly, or not initializing/declaring it properly, but I can't work out what i'm doing wrong.One thing i'll mention though. The timer event occasionally comes up with a warning about the contents having changed during the For..Next loop. I don't think this will affect things though. As long as the hash table item count matches what it should be, I don't see that being an issue.

Imports nsoftware.IPWorks
Imports System.Data.SQLite
Public Class frmMain

[code]....

View 14 Replies

VS 2008 Finding A Set Of Numbers In A String?

Mar 23, 2011

I am needing to locate a given set of numbers in a string, and have limited success, it is almost always finding the numbers that I want, but I need it to be more reliable.Below is a test program that I am using to test with and also 2 picures that may explain better that I can put into words.

[Code]...

View 6 Replies

VS 2008 Finding All Characters In A String?

Jul 27, 2009

I have a string. I need to check what characters it contains because certain invalid characters are causing my sql query not to work. In the query I select where SupplierName is equal to the string. I need to replace the invalid characters at database and vb level. But I need to know first what the characters are.

View 15 Replies

VS 2008 Finding An Ellipse From 4 Points?

Mar 30, 2011

How can I calculate the bounding rectangle of an ellipse using 4 points on the ellipse?

View 1 Replies

VS 2008 Finding Child By Its First Word?

May 23, 2009

I got a situation where i have the first word only of a a child window and the rest of the name changes. I need to find this child window using findwindowex i think by not knowing the full name.

Searching the processes wont work since it is a child.

View 6 Replies

VS 2008 Finding Text In RichTextBox?

Aug 29, 2009

Is there anyway I could find text in a RichTextBox? I want to put the code in here

[code]...

View 10 Replies

VS 2008 Finding The Directory Of Installation

Jul 8, 2009

Alright, my program requires a folder to put the save files in, and it works fine to create it when I know where the program was installed to. I want to assume that everyone will install to C:/Program Files... however, one cannot assume. Is there a way for me to find out where the program was installed to ie. D:/WorkPrograms/ProgramHere, instead of the Program files? Specifically, is there some sort of code that I can run at startup to find where the program file is, so I can keep all the save files in there?

View 3 Replies

VS 2008 Finding The Position Of A Chr In A String?

Mar 13, 2011

I am trying to find the position in a string of a perticular letter of the alphabet (Q), I have found a method to determine if the letter exsists in the string, but not it's position.

View 21 Replies

VS 2008 Finding The Smallest ASCII Value?

Nov 7, 2010

I've been practicing how to use Loops. So I'm trying to create a program where a user enters 10 letters and I have to find which character has the smallest ASCII value.

example: If someone inputs "qwerTyuio" my output should display "T"

Now I think I got my program to get the ASCII values of a string but I can't figure out how to compare each ASCII value of each character.

Dim str, y As String
Dim x As Integer
str = txtLetter.Text

[Code]....

View 6 Replies

VS 2008 - Finding 3 Equal Numbers Out Of 5 Random

Apr 23, 2011

I have a program I'm working on (a chance game) that has 5 random numbers generated. I need to think of an expression to check to see if three of those numbers are equal. The random values are not an array, they are 5 separate variables. I have the code written to compare if there are two matching ones, but am having trouble thinking past that. [Code]

View 3 Replies

VS 2008 - Finding Object Class Based On Its Name

Apr 18, 2010

I'm an intermediate student taking on a monopoly game for a summative project. I decided to simulate the game monopoly. The rules are the same as the board game, so the idea is that each "property" or board piece is a button. I will have variables for the players position and player totals. To indicate an owned property, I'll change the buttons to flatstyle and use the bordercolor property.

To indicate the player position, I change the text on the button to include "Player: " etc. The trouble I'm having is that each button is named based on position, followed by the name. ie: "btn1Start", "btn2BalticAvenue", so on and so forth. Now, once I roll the two die and gather random integers, I add the total to the player position. Now what I want to do is find the button that the position corresponds to.

Private Sub turn(ByRef playerPosition As Integer)
Dim die1 As Integer = Int(6 * Rnd() + 1)
Dim die2 As Integer = Int(6 * Rnd() + 1)
playerPosition += die1 + die2
Dim button1 As Button = ?

I've tried various methods. Me.Controls.Contains("btn" & Position) is a boolean, so I can't make an object control class equal to that. Me.Controls.Find requires an exact name, so I can't do Me.Controls.Find("btn" & Position) because it needs the full name - each property has something else added on to the name (eg "BalticAvenue"). I want to set the button equal to the specific button based on the turn position, so I can update the text to include the player and allow him/her to initiate the property's effect (buy/pay rent/or chance cards).

View 29 Replies

VS 2008 - Finding Out If Form Loaded And Shown

Sep 25, 2010

Is it possible in VB .NET to find out if a form is loaded? Also, is it possible to find out if a form is shown at the moment? I think for the second issue it's enough to get the value of the property of the form:
MyForm.Visible
However, I don't know how I could find out if a form is loaded or not.

View 22 Replies

VS 2008 Finding A Vertical Progress Bar That Will Step By 0.01?

Dec 3, 2009

Is there a Vertical progress bar that will step by 0.01

View 7 Replies

VS 2008 Finding All Numeric Combinations Of A Set Of Numbers?

Jun 7, 2009

I am trying to create a program that can figure out all the different combinations of numbers in a string.

View 2 Replies

VS 2008 Finding Duplicate Rows In A DataGridView?

Aug 26, 2010

If I have an unbound DGV with hundreds or thousands of rows what is the easiest way to find any or all duplicate rows? ie. where the data in all the columns is the same in 2 or more rows.

View 4 Replies

VS 2008 Finding Invalid File Name Characters?

Nov 17, 2009

Well I've recently discovered that trying to create a file with so-called 'illegal characters' will cause your application to crash.. How do I find these characters in a string and replace them with nothing?

The invalid characters are / : * ? " < > | if that helps.

View 3 Replies

VS 2008 Finding The Elapsed Time Between 2 Times

Oct 21, 2010

Bit stuck on this one, have seen alot about how to do it just cant seem to get it right. I want to have 2 text boxes with times in them.. at the moment i have them on click events then it just runs a Now for the time and fills the boxes from the system time. But then i want the 3rd box to find the elapsed time from the 2 times in the previous boxes but i just cant seem to figure it out

[Code]...

View 10 Replies

VS 2008 Finding The Elapsed Time Between 2 Times?

Feb 19, 2010

Bit stuck on this one, have seen alot about how to do it just cant seem to get it right.I want to have 2 text boxes with times in them.. at the moment i have them on click events then it just runs a Now for the time and fills the boxes from the system time.But then i want the 3rd box to find the elapsed time from the 2 times in the previous boxes but i just cant seem to figure it out

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved