tadotable

Call procedure on another form?

陌路散爱 提交于 2020-01-11 10:06:33
问题 I'm sure this has been asked before, but I couldn't seem to find it. I use the code below to display an Image from a MS Access database. However, I would like know how to do the following: -Is it possible to take the procedure below and 'call' it in another form? Scenario : Three Forms. Three Tables, One Database. I access the tables via a TADOTable component and TADOConnection. Each form has a button (btnShowImage), to show the picture from the datbase. In order for it to currently work, I

Call procedure on another form?

末鹿安然 提交于 2020-01-11 10:06:10
问题 I'm sure this has been asked before, but I couldn't seem to find it. I use the code below to display an Image from a MS Access database. However, I would like know how to do the following: -Is it possible to take the procedure below and 'call' it in another form? Scenario : Three Forms. Three Tables, One Database. I access the tables via a TADOTable component and TADOConnection. Each form has a button (btnShowImage), to show the picture from the datbase. In order for it to currently work, I

Call procedure on another form?

牧云@^-^@ 提交于 2020-01-11 10:05:45
问题 I'm sure this has been asked before, but I couldn't seem to find it. I use the code below to display an Image from a MS Access database. However, I would like know how to do the following: -Is it possible to take the procedure below and 'call' it in another form? Scenario : Three Forms. Three Tables, One Database. I access the tables via a TADOTable component and TADOConnection. Each form has a button (btnShowImage), to show the picture from the datbase. In order for it to currently work, I

How Can I Sort an ADO Table on a Fieldname Containing a Space?

亡梦爱人 提交于 2019-12-20 06:36:49
问题 I am using Delphi, but this is a simple and general problem: I'm doing the following: var ArticlesTable: TADOTable; begin ArticlesTable.DisableControls; ArticlesTable.Sort := 'CITY'; ArticlesTable.First; while not ArticlesTable.Eof do begin ... ArticlesTable.Next; end; This works very well and allows me to efficiently process the records one by one with the records ordered ascending by the CITY field as they are coming in. However, now I wanted to order by the field "LAST NAME" which has an

Similar search in integer field by filter property

给你一囗甜甜゛ 提交于 2019-12-08 07:51:01
问题 I have a ADODataSet where the "Filtered" property is set to True (Filtered:= True;) When I apply the filter: [No] like '2%' an error "Filter can't be opened" pops up. [No] is a field in the ADODataSet of integer type. When I apply a similiar filter to string columns it works fine. e.g: [LastName] like 'Jo%'. Any idea ? Thanks. 回答1: I agree with Ken, if you're looking for numeric values 20 through 29 or 200 through 299, then search based on the values. If you still want to do as you ask,

How Can I Sort an ADO Table on a Fieldname Containing a Space?

偶尔善良 提交于 2019-12-02 09:32:18
I am using Delphi, but this is a simple and general problem: I'm doing the following: var ArticlesTable: TADOTable; begin ArticlesTable.DisableControls; ArticlesTable.Sort := 'CITY'; ArticlesTable.First; while not ArticlesTable.Eof do begin ... ArticlesTable.Next; end; This works very well and allows me to efficiently process the records one by one with the records ordered ascending by the CITY field as they are coming in. However, now I wanted to order by the field "LAST NAME" which has an embedded space in it. But when I use the statement: ArticlesTable.Sort := 'CITY'; I get the error