DB/Reporting :: The Result Of Selection Formula Must Be A Boolean
Nov 5, 2008
Below is my formula for a field in my report. All fields are of value type 'Number'. When I try to save the formula it gives me error "The result of selection formula must be a boolean." Why is this? Sometimes it does not catch it as an error, but when I actually run the rwport with real data, it shows the error again. Sigh.
[Code]...
View 1 Replies
ADVERTISEMENT
Dec 10, 2010
I am currently having a headache on how to solve this problem that i am facing. here is the situation: I have a combobox and a list box on the main form. The combobox will get the data from the ms access database. In the database, i have the details of a person's IC, Name and DOB say for eg on one entry I have D215311523C,SHAWN,13/04/1987 So now, my combobox on form load will show the list of dates in the database to allow the user to search base on the date itself by clicking on the selected date. So when the user clicks on the particular date say 13/04/1987, people in the database whose birthday is 13/04/1987 will be shown on the listbox.Meaning to say if i have 3 entries whose dates are the same 13/04/1987, 3 entries will appear. If there is only two entry, then two results will be shown. But now, when i do a single click on the date, one result will be shown. That is correct. But the problem is when i click on the same date again, three of the same results will be shown on the list box. that is it will display : 13/04/1987 13/04/1987 13/04/1987 which is not the case. Then it will show more duplicates of the same results if i click more times on the same date which should not be the case.
Dim n As Integer
Dim numbers() As Integer
Dim StartFrom As Integer
Dim EndAt As Integer
[code].....
View 3 Replies
Apr 4, 2011
I am using Crystal Report 10.5.3700.0. I have created a report which is using stored procedure. Now from vb.net code (in VS2005) I set the selection formula like: proSaleByPerson;1.PersonsId=1
But when the report load its giving following error "Query Engine Error 'ADO Error Code:0x'", Failed to open a rowset. Keep in mind that all other reports are working fine only that reports creat problem which are using stored procedure, when setting the selection formula.
View 1 Replies
Jun 5, 2011
i have a problem with my crystal reports selection formula, i have two forms form1 and form 2. in form 1 i have combobox where you can select the values to appear in form2 crystal report viewer but when i run form1 and select an item from dropdownlist visual studio throws an error this my selection formula "{StaffInformation.Specialty} LIKE '" & Form1.combobox1.text & "'"
View 1 Replies
Jul 15, 2011
I have a text box for user key in a formula,like '1+3-5',and i need to solve and display the answer.
Also need to handle the brackets,like '9+(2*4)'.
Operation is plus,minus,multiply,devide.
View 5 Replies
Apr 22, 2010
I am facing one issue while passing SelectionFormula in Cystal report 8.5 using vb6 which is following:when I pass SelectionFormula in English it works fine but when I pass in Thai or in Arabic it does not get any data in the report. I am using the following way to do this
View 6 Replies
Jun 7, 2010
This is just an efficiency question really.. I'm interested to know if there is a more efficient or logical way that people use to handle this sort of scenario.
In my asp.net application I am running a script to generate a new project my code at the top level looks like this:
Dim ok As Boolean = True
ok = createFolderStructure()
If ok Then ok = createMDB()
[Code]....
I create a boolean and each function returns a boolean result, the next function in this chain will only run if the previous one was successful. I do this because an asp.net application will continue to run through the page life cycle unless there is an unhandled exception and I don't want my whole application to be screwed up if something in the chain goes wrong (there is a lot of copying and deleting of files etc.. in this example).
View 3 Replies
Dec 29, 2008
I'm creating a Macro for reporting purposes and trying to create a formula that will look at a prior days report, save it out, and work off of that one.
View 2 Replies
Apr 14, 2008
I have a crystal report that fails on a formula field but I cannot see why.
Here is my code:
Code:
Public Function CreateReportPDF(ByVal dsReport As DataSet, ByVal CrystalReportPath As String, _
ByVal reportSize As String, ByVal landScape As Boolean, _
ByVal dsParameters As DataSet, ByVal filePath As String, _
ByVal fileName As String) As Boolean
[Code]...
View 1 Replies
Dec 13, 2010
I'm working on a quadratic formula program and when I enter 1 as A, 2 as B, and 1 as A (X should end up being -1), it returns "NaN" in both text boxes.
Here's the code:
CODE:
View 8 Replies
Mar 12, 2009
I'm writing an application to mimic a cash machine, I have a Form1 on which the user enters their PIN and chooses their card no. from a drop down box.The accountID is passed to Form2 and I know this is successfully seen by displaying it in a simple message box.A data adapter and dataset are used for this to the cards table.However, what I then require is within Form2 to retrieve the balance from that accountID in table Accounts, another data adapter and dataset have been created for this under Form2.I'm trying to get the balance into another variable, and I have written this as follows: [code]I would expect the result of this to be e.g. 100.00 but instead I am getting a response of "There is no row at position 0".
View 1 Replies
Mar 15, 2008
i want to print the results of my SELECT statement, but im unsure of how. This is the code i've written so far:
Private Sub ProcSelectRecords()
Dim MyConn As ADODB.Connection
Set MyConn = New ADODB.Connection
[code]......
View 1 Replies
Oct 28, 2008
I'm trying to run a query and display the result in a listbox. I can do it for a datagridview but not for a listbox .
Code:
Private Sub frmNieuweActie_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
strSql = "SELECT Acties.Actieid, Acties.Actie " & _
"FROM(Acties) " & _
[code]....
I get the correct amount of items in my listbox but it displays "System.Data.DataRowView" as item .
View 3 Replies
Jan 31, 2009
I have VS2005, Microsoft Access 2003
ComboA is binded to the Customerstbl and displays the CustomerNames. ComboB is Binded to the CustomerContactstbl for the selected customer above and displays all Contacts for that customer is a second cbobox.
I am having a hell of a time with this, When I select a customers name in ComboA, I want ComboB to automattically query the contacts in ComboB based on ComboA's selection. where do I create the query for getting the contacts for that customer?
In the Customer or Contacts tbl?
Is this something that would be better hard coding or is VS2005 that much improved that its ok to use these binding features?
View 1 Replies
Apr 8, 2009
I would like to post the result of a query in a textbox. [Code] Suppose this is my table, then I would like to post the sum from aantal from in a textbox. For UserID 1 it would be 35, for UserID it would be 35, [Code] but how do I get the result in my textbox?
View 2 Replies
Jun 24, 2010
I have a combo box and a subform that uses continuous forms format. When Combo box changes, the subform POINTER points to the correct record. How could I at the same time highlight (change color) of all the fields in the selected record?
View 1 Replies
Apr 3, 2009
I'm running into a little problem making one combo box dependent on the selection of another combo box. I'm using a access back-end to this project. I have two tables: MajorCategoryTbl and MinorCategoryTbl , MajorCategoryTbl has PK and description field, MinorCategoryTbl has a PK, MajorID (foreign key), and description field. I have two combo boxes on my form, one that displays the Major description, and one that displays the MinorCategoryTbl description, but the stored value is the PK for both. I want the selection of the minor category combobox to depend on what was selected in the major category combobox.
View 2 Replies
Mar 18, 2008
How Do I show the values from the dataset to the text box based on the selection from the combobox list i already populated the combobox my code is. [code]
View 3 Replies
Nov 17, 2009
From what I read it is a good convention to name a method that returns a boolean value with the prefix of "is" or "has". So in keeping with this convention I am trying to name a method in my program with this prefix but I am running Specifically I have a class called Day. It is a simple class with a few data members and one method that returns a boolean value of true or false. The name of the boolean variable is isSpecialDay. This class has a method called isSpecialDay which takes the date of the day, applies some criteria to the date and then sets the variable isSpecialDay to true or false. My problem is that the boolean variable is named isSpecialDay and so it the method. What should I do?
Public Class Day
Private TheDate as String
Private DayName as String
[code].....
View 8 Replies
Feb 20, 2009
I want to place two radio buttons in so I can select one of them to use one formula, and then select the other to use another formula. I want to use the I=P(1+r)^n formula and I=P(1-r)^n formula with the radio button text showing Appreciation and Depreciation.
Heres my copy of the original code.
Public Class Form1
Private Sub cmdExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdExit.Click
End
End Sub
[CODE].......................
View 5 Replies
Oct 27, 2011
After Filling a DataTable in GridView's DataSource . A column with check box Type appears but it created as read only column and I can't enable it or make it editable... even i tried .readonly = false and still can't be edited
View 1 Replies
Mar 5, 2010
I ran some code through an automatic translator for C# to VB, and it translated some code like this:Public Property Title As [String]How is this different to Public Property Title As String
View 3 Replies
Feb 27, 2009
I am trying have a data grid selection populate a form. I am new to this.Basically I have a connection persistance object and I would like to call that and call a stored procedure with the value of the selection. The datagrid is bound to an object.
[Code]...
View 1 Replies
Dec 25, 2010
I have a listbox (20 Items) with multiselection and label that disply the selection and one button. So I wrote (it works fine)
[code]...
Now when I click on button the label show lets say Item2,Item5,Item10,How do I take off the last ","
somthing like that Item2,Item5,Item10
I used to do: Dim s As String = Trim(Label1.Text)Label1.Text = s.Substring(0, s.Length - 1) but it give me an error converting intiger to string
View 6 Replies
Jun 16, 2009
osheet.Range("A1").Select
'The line below is the one I would like to know how should I write it in VB.NET:
osheet.Range(Selection, Selection.end(xlDown)).Select
[code]......
View 3 Replies
Sep 25, 2010
I am using a datagrid in my where i am having four columns. In first column the parameter values are entered and in the second column measured value is entered and in third column the nominal value is entered.Inthe fourth column the result is displayed by subtracting the measured value and nominal values. I am doing this calculation in Datagrid cell validated event. What i want is,there will be many rows in the grid,when typing the value in the third column the corresponding result will be displayedin the rowof theresult column,save button will be displayed while the form loads,when the calculate part is completed that is there should not any cell of the resut column empty then i should enable the save butto.
View 2 Replies
Oct 14, 2009
I am encountering the following issue So i have a device that sends stuff at the serial port, i then parse it and put it into an array of bytes like that:
Dim HCI_Command_Rcvd_Byte() As Byte All good till here What i wanna do is make an array and put this result every time the serial port gives me a new result, for example:
[Code]...
Basically what i wanna do is let the port parse the messages, fill in the array with the result at an empty spot in this array and then i will have a separate thread that will look in into this array in each non empty space and after it looks into the non empty space it will use or discard the info and also mark this space as empty (after it checked)
View 7 Replies
Aug 26, 2011
I am using this code to select a folder.how to do the same kind of thing selecting a file instead of an folder.
Private Sub PathButtonB_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PathButtonB.Click
Using FolderBrowserDialog As New FolderBrowserDialog
With FolderBrowserDialog
.Description = "Kies die Folder waar hierdie ResepteBoek die Kunswerke vir sy Resepte moet gaan soek."
.ShowNewFolderButton = False
[code]....
View 4 Replies
Apr 16, 2010
I just read about DataSet in VB.NET, it uses disconnected concept. My question is: if my apps has "List All" button that query data from 1 table in the database, and that table has "very very very" many rows, so my DataSet will be filled with those data and eat up memory. Can I limit the data that being put to the DataSet from that query? But I want to be able to retrieve the next data from the same query if the user want to see it?
For example:
I have 1000 rows in my database, and i query all of them. But I just want 200 rows being inserted to my DataSet, but if the user want to see rows number 201 and so on, I want to be able to retrieve the next 200 rows, and so on. So it just like cutting those data into a group of 200 rows. Can I do this with the concept of "disconnected" of the DataSet?
View 5 Replies
Mar 18, 2010
Found this:
Sub SurroundWithAppendTag()
DTE.ActiveDocument.Selection.Text = ".Append(""" + DTE.ActiveDocument.Selection.Text + """)"
End Sub
But I can't seem to figure out how to loop through each line of text in the selection.
View 1 Replies