I'm working with VS2005 and C#, I'm using Firebird, however I think Database engine is not relevant in this case.

I want to create a lookup field and a Calculated field for my table, I search in google, but I have not find a good answer.

My code at the moment, starts like that:

public partial class FrmServer : Form
        private FbConnection _connect;
        private FbCommand command1;
        private FbDataAdapter DA_Item;
        private DataSet DS_Item;
        public FrmServer()
            _connect = new FbConnection("****");
            command1 = _connect.CreateCommand();
            command1.CommandText = "SELECT Item,TipeItem,Name,Cost,Price,weight,Item_date,";
            command1.CommandText += "old_price,barcode FROM ITEM WHERE (barcode IS NOT NULL)";
            DA_Item = new FbDataAdapter(command1);
            DS_Item = new DataSet();
            DataTable TArt_Item = DS_Item.Tables[0];
8 Years
Discussion Span
Last Post by LizR

Well. depends on the calculation - if for example you had item, cost, quantity, and wanted "totalcost" you could do so in your query.

So i guess you need to work at least what you want to look up and do with any answer, as well as what calculation you want.. and what you want to do with that, before you stand a chance of coding it - and perhaps this will help you refine your searches

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.