how to use ADO recordset to create new table based on existing table and set the recordset(new table) as form's record s
By : Efthimis Tsopelas
Date : March 29 2020, 07:55 AM
|
Table and form based off a different table - see if a common record exists in the table and insert a "yes" or
By : user3224214
Date : March 29 2020, 07:55 AM
|
LINQ lambda expression subquery to find a parent record in the same table
By : FaceKickinIndustries
Date : March 29 2020, 07:55 AM
I hope this helps . Is it possible to do a lambda expression to run this query in C#? , Check this code: code :
var l = Table.Where(x => Table.Where(n => n.Name == "child")
.Select(n => n.ParentId).Any(y => y == x.Id)).Select(y=>y.Name);
class Person
{
public int Id { get; set; }
public int ParentId { get; set; }
public string Name { get; set; }
public Person(int id, int parentId, string name)
{
Id = id;
ParentId = parentId;
Name = name;
}
}
|
Access, Getting info from another table to display on one form already using a different table record source based on 3
By : m.sadeghi
Date : March 29 2020, 07:55 AM
|
Linq select a record based on child table data
By : Zaero
Date : March 29 2020, 07:55 AM
Hope this helps This answer pointed me in the right direction, LINQ Query - Only get Order and MAX Date from Child CollectionModified my query to the below. code :
if (!string.IsNullOrEmpty(status)) {
{
query = query
.SelectMany(s => s.order_status
.OrderByDescending(o => o.DateStatusUpdated)
.Take(1)
)
.Where(w => w.Status.Equals(status))
.Select(s => s.order_tbl);
}
|